#a7c51e Color
Color Codes | |
---|---|
Hex Code | #a7c51e |
RGB Code | rgb(167, 197, 30) |
HSL Code | hsl(71, 74%, 45%) |
#a7c51e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(167, 197, 30); }
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(71, 74%, 45%); }
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 #a7c51e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(167, 197, 30, 10%) | #a7c51e1a | |
rgb(167, 197, 30, 20%) | #a7c51e33 | |
rgb(167, 197, 30, 40%) | #a7c51e4C | |
rgb(167, 197, 30, 60%) | #a7c51e99 | |
rgb(167, 197, 30, 80%) | #a7c51eCC | |
rgb(167, 197, 30, 100%) | #a7c51eFF |
Saturated and desaturated colors of #a7c51e
HSL Code | Preview |
---|---|
hsl(71, 10%, 45%) | |
hsl(71, 20%, 45%) | |
hsl(71, 40%, 45%) | |
hsl(71, 60%, 45%) | |
hsl(71, 80%, 45%) | |
hsl(71, 100%, 45%) |
#a7c51e Color Usage In CSS
body { color: #a7c51e; } p { color: rgb(167, 197, 30); } header { border-bottom:1px solid #a7c51e; }