#a66d98 Color
Color Codes | |
---|---|
Hex Code | #a66d98 |
RGB Code | rgb(166, 109, 152) |
HSL Code | hsl(315, 24%, 54%) |
#a66d98 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(166, 109, 152); }
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(315, 24%, 54%); }
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 #a66d98
RGB Code | Hex Code | Preview |
---|---|---|
rgb(166, 109, 152, 10%) | #a66d981a | |
rgb(166, 109, 152, 20%) | #a66d9833 | |
rgb(166, 109, 152, 40%) | #a66d984C | |
rgb(166, 109, 152, 60%) | #a66d9899 | |
rgb(166, 109, 152, 80%) | #a66d98CC | |
rgb(166, 109, 152, 100%) | #a66d98FF |
Saturated and desaturated colors of #a66d98
HSL Code | Preview |
---|---|
hsl(315, 10%, 54%) | |
hsl(315, 20%, 54%) | |
hsl(315, 40%, 54%) | |
hsl(315, 60%, 54%) | |
hsl(315, 80%, 54%) | |
hsl(315, 100%, 54%) |
#a66d98 Color Usage In CSS
body { color: #a66d98; } p { color: rgb(166, 109, 152); } header { border-bottom:1px solid #a66d98; }