#28cc3c Color
Color Codes | |
---|---|
Hex Code | #28cc3c |
RGB Code | rgb(40, 204, 60) |
HSL Code | hsl(127, 67%, 48%) |
#28cc3c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(40, 204, 60); }
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(127, 67%, 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 #28cc3c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(40, 204, 60, 10%) | #28cc3c1a | |
rgb(40, 204, 60, 20%) | #28cc3c33 | |
rgb(40, 204, 60, 40%) | #28cc3c4C | |
rgb(40, 204, 60, 60%) | #28cc3c99 | |
rgb(40, 204, 60, 80%) | #28cc3cCC | |
rgb(40, 204, 60, 100%) | #28cc3cFF |
Saturated and desaturated colors of #28cc3c
HSL Code | Preview |
---|---|
hsl(127, 10%, 48%) | |
hsl(127, 20%, 48%) | |
hsl(127, 40%, 48%) | |
hsl(127, 60%, 48%) | |
hsl(127, 80%, 48%) | |
hsl(127, 100%, 48%) |
#28cc3c Color Usage In CSS
body { color: #28cc3c; } p { color: rgb(40, 204, 60); } header { border-bottom:1px solid #28cc3c; }