#5d8a25 Color
Color Codes | |
---|---|
Hex Code | #5d8a25 |
RGB Code | rgb(93, 138, 37) |
HSL Code | hsl(87, 58%, 34%) |
#5d8a25 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(93, 138, 37); }
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(87, 58%, 34%); }
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 #5d8a25
RGB Code | Hex Code | Preview |
---|---|---|
rgb(93, 138, 37, 10%) | #5d8a251a | |
rgb(93, 138, 37, 20%) | #5d8a2533 | |
rgb(93, 138, 37, 40%) | #5d8a254C | |
rgb(93, 138, 37, 60%) | #5d8a2599 | |
rgb(93, 138, 37, 80%) | #5d8a25CC | |
rgb(93, 138, 37, 100%) | #5d8a25FF |
Saturated and desaturated colors of #5d8a25
HSL Code | Preview |
---|---|
hsl(87, 10%, 34%) | |
hsl(87, 20%, 34%) | |
hsl(87, 40%, 34%) | |
hsl(87, 60%, 34%) | |
hsl(87, 80%, 34%) | |
hsl(87, 100%, 34%) |
#5d8a25 Color Usage In CSS
body { color: #5d8a25; } p { color: rgb(93, 138, 37); } header { border-bottom:1px solid #5d8a25; }