#8e9caa Color
Color Codes | |
---|---|
Hex Code | #8e9caa |
RGB Code | rgb(142, 156, 170) |
HSL Code | hsl(210, 14%, 61%) |
#8e9caa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(142, 156, 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(210, 14%, 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 #8e9caa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(142, 156, 170, 10%) | #8e9caa1a | |
rgb(142, 156, 170, 20%) | #8e9caa33 | |
rgb(142, 156, 170, 40%) | #8e9caa4C | |
rgb(142, 156, 170, 60%) | #8e9caa99 | |
rgb(142, 156, 170, 80%) | #8e9caaCC | |
rgb(142, 156, 170, 100%) | #8e9caaFF |
Saturated and desaturated colors of #8e9caa
HSL Code | Preview |
---|---|
hsl(210, 10%, 61%) | |
hsl(210, 20%, 61%) | |
hsl(210, 40%, 61%) | |
hsl(210, 60%, 61%) | |
hsl(210, 80%, 61%) | |
hsl(210, 100%, 61%) |
#8e9caa Color Usage In CSS
body { color: #8e9caa; } p { color: rgb(142, 156, 170); } header { border-bottom:1px solid #8e9caa; }