#7a841c Color
Color Codes | |
---|---|
Hex Code | #7a841c |
RGB Code | rgb(122, 132, 28) |
HSL Code | hsl(66, 65%, 31%) |
#7a841c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(122, 132, 28); }
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(66, 65%, 31%); }
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 #7a841c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(122, 132, 28, 10%) | #7a841c1a | |
rgb(122, 132, 28, 20%) | #7a841c33 | |
rgb(122, 132, 28, 40%) | #7a841c4C | |
rgb(122, 132, 28, 60%) | #7a841c99 | |
rgb(122, 132, 28, 80%) | #7a841cCC | |
rgb(122, 132, 28, 100%) | #7a841cFF |
Saturated and desaturated colors of #7a841c
HSL Code | Preview |
---|---|
hsl(66, 10%, 31%) | |
hsl(66, 20%, 31%) | |
hsl(66, 40%, 31%) | |
hsl(66, 60%, 31%) | |
hsl(66, 80%, 31%) | |
hsl(66, 100%, 31%) |
#7a841c Color Usage In CSS
body { color: #7a841c; } p { color: rgb(122, 132, 28); } header { border-bottom:1px solid #7a841c; }