#5f792f Color
Color Codes | |
---|---|
Hex Code | #5f792f |
RGB Code | rgb(95, 121, 47) |
HSL Code | hsl(81, 44%, 33%) |
#5f792f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 121, 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(81, 44%, 33%); }
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 #5f792f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 121, 47, 10%) | #5f792f1a | |
rgb(95, 121, 47, 20%) | #5f792f33 | |
rgb(95, 121, 47, 40%) | #5f792f4C | |
rgb(95, 121, 47, 60%) | #5f792f99 | |
rgb(95, 121, 47, 80%) | #5f792fCC | |
rgb(95, 121, 47, 100%) | #5f792fFF |
Saturated and desaturated colors of #5f792f
HSL Code | Preview |
---|---|
hsl(81, 10%, 33%) | |
hsl(81, 20%, 33%) | |
hsl(81, 40%, 33%) | |
hsl(81, 60%, 33%) | |
hsl(81, 80%, 33%) | |
hsl(81, 100%, 33%) |
#5f792f Color Usage In CSS
body { color: #5f792f; } p { color: rgb(95, 121, 47); } header { border-bottom:1px solid #5f792f; }