#a6799a Color
Color Codes | |
---|---|
Hex Code | #a6799a |
RGB Code | rgb(166, 121, 154) |
HSL Code | hsl(316, 20%, 56%) |
#a6799a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(166, 121, 154); }
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(316, 20%, 56%); }
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 #a6799a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(166, 121, 154, 10%) | #a6799a1a | |
rgb(166, 121, 154, 20%) | #a6799a33 | |
rgb(166, 121, 154, 40%) | #a6799a4C | |
rgb(166, 121, 154, 60%) | #a6799a99 | |
rgb(166, 121, 154, 80%) | #a6799aCC | |
rgb(166, 121, 154, 100%) | #a6799aFF |
Saturated and desaturated colors of #a6799a
HSL Code | Preview |
---|---|
hsl(316, 10%, 56%) | |
hsl(316, 20%, 56%) | |
hsl(316, 40%, 56%) | |
hsl(316, 60%, 56%) | |
hsl(316, 80%, 56%) | |
hsl(316, 100%, 56%) |
#a6799a Color Usage In CSS
body { color: #a6799a; } p { color: rgb(166, 121, 154); } header { border-bottom:1px solid #a6799a; }