#a657a6 Color
Color Codes | |
---|---|
Hex Code | #a657a6 |
RGB Code | rgb(166, 87, 166) |
HSL Code | hsl(300, 31%, 50%) |
#a657a6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(166, 87, 166); }
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(300, 31%, 50%); }
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 #a657a6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(166, 87, 166, 10%) | #a657a61a | |
rgb(166, 87, 166, 20%) | #a657a633 | |
rgb(166, 87, 166, 40%) | #a657a64C | |
rgb(166, 87, 166, 60%) | #a657a699 | |
rgb(166, 87, 166, 80%) | #a657a6CC | |
rgb(166, 87, 166, 100%) | #a657a6FF |
Saturated and desaturated colors of #a657a6
HSL Code | Preview |
---|---|
hsl(300, 10%, 50%) | |
hsl(300, 20%, 50%) | |
hsl(300, 40%, 50%) | |
hsl(300, 60%, 50%) | |
hsl(300, 80%, 50%) | |
hsl(300, 100%, 50%) |
#a657a6 Color Usage In CSS
body { color: #a657a6; } p { color: rgb(166, 87, 166); } header { border-bottom:1px solid #a657a6; }