#2ec54a Color
Color Codes | |
---|---|
Hex Code | #2ec54a |
RGB Code | rgb(46, 197, 74) |
HSL Code | hsl(131, 62%, 48%) |
#2ec54a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(46, 197, 74); }
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(131, 62%, 48%); }
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 #2ec54a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(46, 197, 74, 10%) | #2ec54a1a | |
rgb(46, 197, 74, 20%) | #2ec54a33 | |
rgb(46, 197, 74, 40%) | #2ec54a4C | |
rgb(46, 197, 74, 60%) | #2ec54a99 | |
rgb(46, 197, 74, 80%) | #2ec54aCC | |
rgb(46, 197, 74, 100%) | #2ec54aFF |
Saturated and desaturated colors of #2ec54a
HSL Code | Preview |
---|---|
hsl(131, 10%, 48%) | |
hsl(131, 20%, 48%) | |
hsl(131, 40%, 48%) | |
hsl(131, 60%, 48%) | |
hsl(131, 80%, 48%) | |
hsl(131, 100%, 48%) |
#2ec54a Color Usage In CSS
body { color: #2ec54a; } p { color: rgb(46, 197, 74); } header { border-bottom:1px solid #2ec54a; }