#8a952f Color
Color Codes | |
---|---|
Hex Code | #8a952f |
RGB Code | rgb(138, 149, 47) |
HSL Code | hsl(66, 52%, 38%) |
#8a952f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(138, 149, 47); }
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(66, 52%, 38%); }
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 #8a952f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(138, 149, 47, 10%) | #8a952f1a | |
rgb(138, 149, 47, 20%) | #8a952f33 | |
rgb(138, 149, 47, 40%) | #8a952f4C | |
rgb(138, 149, 47, 60%) | #8a952f99 | |
rgb(138, 149, 47, 80%) | #8a952fCC | |
rgb(138, 149, 47, 100%) | #8a952fFF |
Saturated and desaturated colors of #8a952f
HSL Code | Preview |
---|---|
hsl(66, 10%, 38%) | |
hsl(66, 20%, 38%) | |
hsl(66, 40%, 38%) | |
hsl(66, 60%, 38%) | |
hsl(66, 80%, 38%) | |
hsl(66, 100%, 38%) |
#8a952f Color Usage In CSS
body { color: #8a952f; } p { color: rgb(138, 149, 47); } header { border-bottom:1px solid #8a952f; }