#2b7927 Color
Color Codes | |
---|---|
Hex Code | #2b7927 |
RGB Code | rgb(43, 121, 39) |
HSL Code | hsl(117, 51%, 31%) |
#2b7927 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(43, 121, 39); }
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(117, 51%, 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 #2b7927
RGB Code | Hex Code | Preview |
---|---|---|
rgb(43, 121, 39, 10%) | #2b79271a | |
rgb(43, 121, 39, 20%) | #2b792733 | |
rgb(43, 121, 39, 40%) | #2b79274C | |
rgb(43, 121, 39, 60%) | #2b792799 | |
rgb(43, 121, 39, 80%) | #2b7927CC | |
rgb(43, 121, 39, 100%) | #2b7927FF |
Saturated and desaturated colors of #2b7927
HSL Code | Preview |
---|---|
hsl(117, 10%, 31%) | |
hsl(117, 20%, 31%) | |
hsl(117, 40%, 31%) | |
hsl(117, 60%, 31%) | |
hsl(117, 80%, 31%) | |
hsl(117, 100%, 31%) |
#2b7927 Color Usage In CSS
body { color: #2b7927; } p { color: rgb(43, 121, 39); } header { border-bottom:1px solid #2b7927; }