#a235ce Color
Color Codes | |
---|---|
Hex Code | #a235ce |
RGB Code | rgb(162, 53, 206) |
HSL Code | hsl(283, 61%, 51%) |
#a235ce Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(162, 53, 206); }
R(red), G(green), B(blue) can be number between 0-255.
A parameter is a hex characters (0–9, A–F) and optional.
hsl()
hsl(hue saturation lightness); hsl(hue saturation lightness / alpha); div { background-color: hsl(283, 61%, 51%); }
Saturation value is a percentage value between 0% unsaturated and 100% fully saturated.
Lightness value is a percentage value between 100% is white and 0% is black.
Lighter and darker colors of #a235ce
RGB Code | Hex Code | Preview |
---|---|---|
rgb(162, 53, 206, 10%) | #a235ce1a | |
rgb(162, 53, 206, 20%) | #a235ce33 | |
rgb(162, 53, 206, 40%) | #a235ce4C | |
rgb(162, 53, 206, 60%) | #a235ce99 | |
rgb(162, 53, 206, 80%) | #a235ceCC | |
rgb(162, 53, 206, 100%) | #a235ceFF |
Saturated and desaturated colors of #a235ce
HSL Code | Preview |
---|---|
hsl(283, 10%, 51%) | |
hsl(283, 20%, 51%) | |
hsl(283, 40%, 51%) | |
hsl(283, 60%, 51%) | |
hsl(283, 80%, 51%) | |
hsl(283, 100%, 51%) |
#a235ce Color Usage In CSS
body { color: #a235ce; } p { color: rgb(162, 53, 206); } header { border-bottom:1px solid #a235ce; }