#8b9c4a Color
Color Codes | |
---|---|
Hex Code | #8b9c4a |
RGB Code | rgb(139, 156, 74) |
HSL Code | hsl(72, 36%, 45%) |
#8b9c4a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(139, 156, 74); }
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(72, 36%, 45%); }
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 #8b9c4a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(139, 156, 74, 10%) | #8b9c4a1a | |
rgb(139, 156, 74, 20%) | #8b9c4a33 | |
rgb(139, 156, 74, 40%) | #8b9c4a4C | |
rgb(139, 156, 74, 60%) | #8b9c4a99 | |
rgb(139, 156, 74, 80%) | #8b9c4aCC | |
rgb(139, 156, 74, 100%) | #8b9c4aFF |
Saturated and desaturated colors of #8b9c4a
HSL Code | Preview |
---|---|
hsl(72, 10%, 45%) | |
hsl(72, 20%, 45%) | |
hsl(72, 40%, 45%) | |
hsl(72, 60%, 45%) | |
hsl(72, 80%, 45%) | |
hsl(72, 100%, 45%) |
#8b9c4a Color Usage In CSS
body { color: #8b9c4a; } p { color: rgb(139, 156, 74); } header { border-bottom:1px solid #8b9c4a; }