#a2b530 Color
Color Codes | |
---|---|
Hex Code | #a2b530 |
RGB Code | rgb(162, 181, 48) |
HSL Code | hsl(69, 58%, 45%) |
#a2b530 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(162, 181, 48); }
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(69, 58%, 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 #a2b530
RGB Code | Hex Code | Preview |
---|---|---|
rgb(162, 181, 48, 10%) | #a2b5301a | |
rgb(162, 181, 48, 20%) | #a2b53033 | |
rgb(162, 181, 48, 40%) | #a2b5304C | |
rgb(162, 181, 48, 60%) | #a2b53099 | |
rgb(162, 181, 48, 80%) | #a2b530CC | |
rgb(162, 181, 48, 100%) | #a2b530FF |
Saturated and desaturated colors of #a2b530
HSL Code | Preview |
---|---|
hsl(69, 10%, 45%) | |
hsl(69, 20%, 45%) | |
hsl(69, 40%, 45%) | |
hsl(69, 60%, 45%) | |
hsl(69, 80%, 45%) | |
hsl(69, 100%, 45%) |
#a2b530 Color Usage In CSS
body { color: #a2b530; } p { color: rgb(162, 181, 48); } header { border-bottom:1px solid #a2b530; }