#a85b7c Color
Color Codes | |
---|---|
Hex Code | #a85b7c |
RGB Code | rgb(168, 91, 124) |
HSL Code | hsl(334, 31%, 51%) |
#a85b7c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(168, 91, 124); }
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(334, 31%, 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 #a85b7c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(168, 91, 124, 10%) | #a85b7c1a | |
rgb(168, 91, 124, 20%) | #a85b7c33 | |
rgb(168, 91, 124, 40%) | #a85b7c4C | |
rgb(168, 91, 124, 60%) | #a85b7c99 | |
rgb(168, 91, 124, 80%) | #a85b7cCC | |
rgb(168, 91, 124, 100%) | #a85b7cFF |
Saturated and desaturated colors of #a85b7c
HSL Code | Preview |
---|---|
hsl(334, 10%, 51%) | |
hsl(334, 20%, 51%) | |
hsl(334, 40%, 51%) | |
hsl(334, 60%, 51%) | |
hsl(334, 80%, 51%) | |
hsl(334, 100%, 51%) |
#a85b7c Color Usage In CSS
body { color: #a85b7c; } p { color: rgb(168, 91, 124); } header { border-bottom:1px solid #a85b7c; }