#2ad952 Color
Color Codes | |
---|---|
Hex Code | #2ad952 |
RGB Code | rgb(42, 217, 82) |
HSL Code | hsl(134, 70%, 51%) |
#2ad952 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 217, 82); }
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(134, 70%, 51%); }
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 #2ad952
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 217, 82, 10%) | #2ad9521a | |
rgb(42, 217, 82, 20%) | #2ad95233 | |
rgb(42, 217, 82, 40%) | #2ad9524C | |
rgb(42, 217, 82, 60%) | #2ad95299 | |
rgb(42, 217, 82, 80%) | #2ad952CC | |
rgb(42, 217, 82, 100%) | #2ad952FF |
Saturated and desaturated colors of #2ad952
HSL Code | Preview |
---|---|
hsl(134, 10%, 51%) | |
hsl(134, 20%, 51%) | |
hsl(134, 40%, 51%) | |
hsl(134, 60%, 51%) | |
hsl(134, 80%, 51%) | |
hsl(134, 100%, 51%) |
#2ad952 Color Usage In CSS
body { color: #2ad952; } p { color: rgb(42, 217, 82); } header { border-bottom:1px solid #2ad952; }