#42ba48 Color
Color Codes | |
---|---|
Hex Code | #42ba48 |
RGB Code | rgb(66, 186, 72) |
HSL Code | hsl(123, 48%, 49%) |
#42ba48 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(66, 186, 72); }
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(123, 48%, 49%); }
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 #42ba48
RGB Code | Hex Code | Preview |
---|---|---|
rgb(66, 186, 72, 10%) | #42ba481a | |
rgb(66, 186, 72, 20%) | #42ba4833 | |
rgb(66, 186, 72, 40%) | #42ba484C | |
rgb(66, 186, 72, 60%) | #42ba4899 | |
rgb(66, 186, 72, 80%) | #42ba48CC | |
rgb(66, 186, 72, 100%) | #42ba48FF |
Saturated and desaturated colors of #42ba48
HSL Code | Preview |
---|---|
hsl(123, 10%, 49%) | |
hsl(123, 20%, 49%) | |
hsl(123, 40%, 49%) | |
hsl(123, 60%, 49%) | |
hsl(123, 80%, 49%) | |
hsl(123, 100%, 49%) |
#42ba48 Color Usage In CSS
body { color: #42ba48; } p { color: rgb(66, 186, 72); } header { border-bottom:1px solid #42ba48; }