#2b821b Color
Color Codes | |
---|---|
Hex Code | #2b821b |
RGB Code | rgb(43, 130, 27) |
HSL Code | hsl(111, 66%, 31%) |
#2b821b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 130, 27); }
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(111, 66%, 31%); }
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 #2b821b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 130, 27, 10%) | #2b821b1a | |
rgb(43, 130, 27, 20%) | #2b821b33 | |
rgb(43, 130, 27, 40%) | #2b821b4C | |
rgb(43, 130, 27, 60%) | #2b821b99 | |
rgb(43, 130, 27, 80%) | #2b821bCC | |
rgb(43, 130, 27, 100%) | #2b821bFF |
Saturated and desaturated colors of #2b821b
HSL Code | Preview |
---|---|
hsl(111, 10%, 31%) | |
hsl(111, 20%, 31%) | |
hsl(111, 40%, 31%) | |
hsl(111, 60%, 31%) | |
hsl(111, 80%, 31%) | |
hsl(111, 100%, 31%) |
#2b821b Color Usage In CSS
body { color: #2b821b; } p { color: rgb(43, 130, 27); } header { border-bottom:1px solid #2b821b; }