#42f158 Color
Color Codes | |
---|---|
Hex Code | #42f158 |
RGB Code | rgb(66, 241, 88) |
HSL Code | hsl(128, 86%, 60%) |
#42f158 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(66, 241, 88); }
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(128, 86%, 60%); }
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 #42f158
RGB Code | Hex Code | Preview |
---|---|---|
rgb(66, 241, 88, 10%) | #42f1581a | |
rgb(66, 241, 88, 20%) | #42f15833 | |
rgb(66, 241, 88, 40%) | #42f1584C | |
rgb(66, 241, 88, 60%) | #42f15899 | |
rgb(66, 241, 88, 80%) | #42f158CC | |
rgb(66, 241, 88, 100%) | #42f158FF |
Saturated and desaturated colors of #42f158
HSL Code | Preview |
---|---|
hsl(128, 10%, 60%) | |
hsl(128, 20%, 60%) | |
hsl(128, 40%, 60%) | |
hsl(128, 60%, 60%) | |
hsl(128, 80%, 60%) | |
hsl(128, 100%, 60%) |
#42f158 Color Usage In CSS
body { color: #42f158; } p { color: rgb(66, 241, 88); } header { border-bottom:1px solid #42f158; }