#2d6539 Color
Color Codes | |
---|---|
Hex Code | #2d6539 |
RGB Code | rgb(45, 101, 57) |
HSL Code | hsl(133, 38%, 29%) |
#2d6539 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(45, 101, 57); }
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(133, 38%, 29%); }
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 #2d6539
RGB Code | Hex Code | Preview |
---|---|---|
rgb(45, 101, 57, 10%) | #2d65391a | |
rgb(45, 101, 57, 20%) | #2d653933 | |
rgb(45, 101, 57, 40%) | #2d65394C | |
rgb(45, 101, 57, 60%) | #2d653999 | |
rgb(45, 101, 57, 80%) | #2d6539CC | |
rgb(45, 101, 57, 100%) | #2d6539FF |
Saturated and desaturated colors of #2d6539
HSL Code | Preview |
---|---|
hsl(133, 10%, 29%) | |
hsl(133, 20%, 29%) | |
hsl(133, 40%, 29%) | |
hsl(133, 60%, 29%) | |
hsl(133, 80%, 29%) | |
hsl(133, 100%, 29%) |
#2d6539 Color Usage In CSS
body { color: #2d6539; } p { color: rgb(45, 101, 57); } header { border-bottom:1px solid #2d6539; }