#a831b9 Color
Color Codes | |
---|---|
Hex Code | #a831b9 |
RGB Code | rgb(168, 49, 185) |
HSL Code | hsl(293, 58%, 46%) |
#a831b9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(168, 49, 185); }
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(293, 58%, 46%); }
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 #a831b9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(168, 49, 185, 10%) | #a831b91a | |
rgb(168, 49, 185, 20%) | #a831b933 | |
rgb(168, 49, 185, 40%) | #a831b94C | |
rgb(168, 49, 185, 60%) | #a831b999 | |
rgb(168, 49, 185, 80%) | #a831b9CC | |
rgb(168, 49, 185, 100%) | #a831b9FF |
Saturated and desaturated colors of #a831b9
HSL Code | Preview |
---|---|
hsl(293, 10%, 46%) | |
hsl(293, 20%, 46%) | |
hsl(293, 40%, 46%) | |
hsl(293, 60%, 46%) | |
hsl(293, 80%, 46%) | |
hsl(293, 100%, 46%) |
#a831b9 Color Usage In CSS
body { color: #a831b9; } p { color: rgb(168, 49, 185); } header { border-bottom:1px solid #a831b9; }