#42a21a Color
Color Codes | |
---|---|
Hex Code | #42a21a |
RGB Code | rgb(66, 162, 26) |
HSL Code | hsl(102, 72%, 37%) |
#42a21a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(66, 162, 26); }
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(102, 72%, 37%); }
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 #42a21a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(66, 162, 26, 10%) | #42a21a1a | |
rgb(66, 162, 26, 20%) | #42a21a33 | |
rgb(66, 162, 26, 40%) | #42a21a4C | |
rgb(66, 162, 26, 60%) | #42a21a99 | |
rgb(66, 162, 26, 80%) | #42a21aCC | |
rgb(66, 162, 26, 100%) | #42a21aFF |
Saturated and desaturated colors of #42a21a
HSL Code | Preview |
---|---|
hsl(102, 10%, 37%) | |
hsl(102, 20%, 37%) | |
hsl(102, 40%, 37%) | |
hsl(102, 60%, 37%) | |
hsl(102, 80%, 37%) | |
hsl(102, 100%, 37%) |
#42a21a Color Usage In CSS
body { color: #42a21a; } p { color: rgb(66, 162, 26); } header { border-bottom:1px solid #42a21a; }