#5b8b3f Color
Color Codes | |
---|---|
Hex Code | #5b8b3f |
RGB Code | rgb(91, 139, 63) |
HSL Code | hsl(98, 38%, 40%) |
#5b8b3f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 139, 63); }
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(98, 38%, 40%); }
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 #5b8b3f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 139, 63, 10%) | #5b8b3f1a | |
rgb(91, 139, 63, 20%) | #5b8b3f33 | |
rgb(91, 139, 63, 40%) | #5b8b3f4C | |
rgb(91, 139, 63, 60%) | #5b8b3f99 | |
rgb(91, 139, 63, 80%) | #5b8b3fCC | |
rgb(91, 139, 63, 100%) | #5b8b3fFF |
Saturated and desaturated colors of #5b8b3f
HSL Code | Preview |
---|---|
hsl(98, 10%, 40%) | |
hsl(98, 20%, 40%) | |
hsl(98, 40%, 40%) | |
hsl(98, 60%, 40%) | |
hsl(98, 80%, 40%) | |
hsl(98, 100%, 40%) |
#5b8b3f Color Usage In CSS
body { color: #5b8b3f; } p { color: rgb(91, 139, 63); } header { border-bottom:1px solid #5b8b3f; }