#aaaaaa Color
Color Codes | |
---|---|
Hex Code | #aaaaaa |
RGB Code | rgb(170, 170, 170) |
HSL Code | hsl(0, 0%, 67%) |
#aaaaaa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(170, 170, 170); }
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(0, 0%, 67%); }
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 #aaaaaa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(170, 170, 170, 10%) | #aaaaaa1a | |
rgb(170, 170, 170, 20%) | #aaaaaa33 | |
rgb(170, 170, 170, 40%) | #aaaaaa4C | |
rgb(170, 170, 170, 60%) | #aaaaaa99 | |
rgb(170, 170, 170, 80%) | #aaaaaaCC | |
rgb(170, 170, 170, 100%) | #aaaaaaFF |
Saturated and desaturated colors of #aaaaaa
HSL Code | Preview |
---|---|
hsl(0, 10%, 67%) | |
hsl(0, 20%, 67%) | |
hsl(0, 40%, 67%) | |
hsl(0, 60%, 67%) | |
hsl(0, 80%, 67%) | |
hsl(0, 100%, 67%) |
#aaaaaa Color Usage In CSS
body { color: #aaaaaa; } p { color: rgb(170, 170, 170); } header { border-bottom:1px solid #aaaaaa; }