#2faf20 Color
Color Codes | |
---|---|
Hex Code | #2faf20 |
RGB Code | rgb(47, 175, 32) |
HSL Code | hsl(114, 69%, 41%) |
#2faf20 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(47, 175, 32); }
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(114, 69%, 41%); }
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 #2faf20
RGB Code | Hex Code | Preview |
---|---|---|
rgb(47, 175, 32, 10%) | #2faf201a | |
rgb(47, 175, 32, 20%) | #2faf2033 | |
rgb(47, 175, 32, 40%) | #2faf204C | |
rgb(47, 175, 32, 60%) | #2faf2099 | |
rgb(47, 175, 32, 80%) | #2faf20CC | |
rgb(47, 175, 32, 100%) | #2faf20FF |
Saturated and desaturated colors of #2faf20
HSL Code | Preview |
---|---|
hsl(114, 10%, 41%) | |
hsl(114, 20%, 41%) | |
hsl(114, 40%, 41%) | |
hsl(114, 60%, 41%) | |
hsl(114, 80%, 41%) | |
hsl(114, 100%, 41%) |
#2faf20 Color Usage In CSS
body { color: #2faf20; } p { color: rgb(47, 175, 32); } header { border-bottom:1px solid #2faf20; }