#2f822b Color
Color Codes | |
---|---|
Hex Code | #2f822b |
RGB Code | rgb(47, 130, 43) |
HSL Code | hsl(117, 50%, 34%) |
#2f822b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(47, 130, 43); }
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, 50%, 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 #2f822b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(47, 130, 43, 10%) | #2f822b1a | |
rgb(47, 130, 43, 20%) | #2f822b33 | |
rgb(47, 130, 43, 40%) | #2f822b4C | |
rgb(47, 130, 43, 60%) | #2f822b99 | |
rgb(47, 130, 43, 80%) | #2f822bCC | |
rgb(47, 130, 43, 100%) | #2f822bFF |
Saturated and desaturated colors of #2f822b
HSL Code | Preview |
---|---|
hsl(117, 10%, 34%) | |
hsl(117, 20%, 34%) | |
hsl(117, 40%, 34%) | |
hsl(117, 60%, 34%) | |
hsl(117, 80%, 34%) | |
hsl(117, 100%, 34%) |
#2f822b Color Usage In CSS
body { color: #2f822b; } p { color: rgb(47, 130, 43); } header { border-bottom:1px solid #2f822b; }