#a27dbc Color
Color Codes | |
---|---|
Hex Code | #a27dbc |
RGB Code | rgb(162, 125, 188) |
HSL Code | hsl(275, 32%, 61%) |
#a27dbc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(162, 125, 188); }
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(275, 32%, 61%); }
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 #a27dbc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(162, 125, 188, 10%) | #a27dbc1a | |
rgb(162, 125, 188, 20%) | #a27dbc33 | |
rgb(162, 125, 188, 40%) | #a27dbc4C | |
rgb(162, 125, 188, 60%) | #a27dbc99 | |
rgb(162, 125, 188, 80%) | #a27dbcCC | |
rgb(162, 125, 188, 100%) | #a27dbcFF |
Saturated and desaturated colors of #a27dbc
HSL Code | Preview |
---|---|
hsl(275, 10%, 61%) | |
hsl(275, 20%, 61%) | |
hsl(275, 40%, 61%) | |
hsl(275, 60%, 61%) | |
hsl(275, 80%, 61%) | |
hsl(275, 100%, 61%) |
#a27dbc Color Usage In CSS
body { color: #a27dbc; } p { color: rgb(162, 125, 188); } header { border-bottom:1px solid #a27dbc; }