#a566cf Color
Color Codes | |
---|---|
Hex Code | #a566cf |
RGB Code | rgb(165, 102, 207) |
HSL Code | hsl(276, 52%, 61%) |
#a566cf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(165, 102, 207); }
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(276, 52%, 61%); }
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 #a566cf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(165, 102, 207, 10%) | #a566cf1a | |
rgb(165, 102, 207, 20%) | #a566cf33 | |
rgb(165, 102, 207, 40%) | #a566cf4C | |
rgb(165, 102, 207, 60%) | #a566cf99 | |
rgb(165, 102, 207, 80%) | #a566cfCC | |
rgb(165, 102, 207, 100%) | #a566cfFF |
Saturated and desaturated colors of #a566cf
HSL Code | Preview |
---|---|
hsl(276, 10%, 61%) | |
hsl(276, 20%, 61%) | |
hsl(276, 40%, 61%) | |
hsl(276, 60%, 61%) | |
hsl(276, 80%, 61%) | |
hsl(276, 100%, 61%) |
#a566cf Color Usage In CSS
body { color: #a566cf; } p { color: rgb(165, 102, 207); } header { border-bottom:1px solid #a566cf; }