#9d8d5c Color
Color Codes | |
---|---|
Hex Code | #9d8d5c |
RGB Code | rgb(157, 141, 92) |
HSL Code | hsl(45, 26%, 49%) |
#9d8d5c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(157, 141, 92); }
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(45, 26%, 49%); }
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 #9d8d5c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(157, 141, 92, 10%) | #9d8d5c1a | |
rgb(157, 141, 92, 20%) | #9d8d5c33 | |
rgb(157, 141, 92, 40%) | #9d8d5c4C | |
rgb(157, 141, 92, 60%) | #9d8d5c99 | |
rgb(157, 141, 92, 80%) | #9d8d5cCC | |
rgb(157, 141, 92, 100%) | #9d8d5cFF |
Saturated and desaturated colors of #9d8d5c
HSL Code | Preview |
---|---|
hsl(45, 10%, 49%) | |
hsl(45, 20%, 49%) | |
hsl(45, 40%, 49%) | |
hsl(45, 60%, 49%) | |
hsl(45, 80%, 49%) | |
hsl(45, 100%, 49%) |
#9d8d5c Color Usage In CSS
body { color: #9d8d5c; } p { color: rgb(157, 141, 92); } header { border-bottom:1px solid #9d8d5c; }