#9c8e5f Color
Color Codes | |
---|---|
Hex Code | #9c8e5f |
RGB Code | rgb(156, 142, 95) |
HSL Code | hsl(46, 24%, 49%) |
#9c8e5f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 142, 95); }
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(46, 24%, 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 #9c8e5f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 142, 95, 10%) | #9c8e5f1a | |
rgb(156, 142, 95, 20%) | #9c8e5f33 | |
rgb(156, 142, 95, 40%) | #9c8e5f4C | |
rgb(156, 142, 95, 60%) | #9c8e5f99 | |
rgb(156, 142, 95, 80%) | #9c8e5fCC | |
rgb(156, 142, 95, 100%) | #9c8e5fFF |
Saturated and desaturated colors of #9c8e5f
HSL Code | Preview |
---|---|
hsl(46, 10%, 49%) | |
hsl(46, 20%, 49%) | |
hsl(46, 40%, 49%) | |
hsl(46, 60%, 49%) | |
hsl(46, 80%, 49%) | |
hsl(46, 100%, 49%) |
#9c8e5f Color Usage In CSS
body { color: #9c8e5f; } p { color: rgb(156, 142, 95); } header { border-bottom:1px solid #9c8e5f; }