#a6a538 Color
Color Codes | |
---|---|
Hex Code | #a6a538 |
RGB Code | rgb(166, 165, 56) |
HSL Code | hsl(59, 50%, 44%) |
#a6a538 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(166, 165, 56); }
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(59, 50%, 44%); }
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 #a6a538
RGB Code | Hex Code | Preview |
---|---|---|
rgb(166, 165, 56, 10%) | #a6a5381a | |
rgb(166, 165, 56, 20%) | #a6a53833 | |
rgb(166, 165, 56, 40%) | #a6a5384C | |
rgb(166, 165, 56, 60%) | #a6a53899 | |
rgb(166, 165, 56, 80%) | #a6a538CC | |
rgb(166, 165, 56, 100%) | #a6a538FF |
Saturated and desaturated colors of #a6a538
HSL Code | Preview |
---|---|
hsl(59, 10%, 44%) | |
hsl(59, 20%, 44%) | |
hsl(59, 40%, 44%) | |
hsl(59, 60%, 44%) | |
hsl(59, 80%, 44%) | |
hsl(59, 100%, 44%) |
#a6a538 Color Usage In CSS
body { color: #a6a538; } p { color: rgb(166, 165, 56); } header { border-bottom:1px solid #a6a538; }