#a931ff Color
Color Codes | |
---|---|
Hex Code | #a931ff |
RGB Code | rgb(169, 49, 255) |
HSL Code | hsl(275, 100%, 60%) |
#a931ff Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(169, 49, 255); }
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(275, 100%, 60%); }
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 #a931ff
RGB Code | Hex Code | Preview |
---|---|---|
rgb(169, 49, 255, 10%) | #a931ff1a | |
rgb(169, 49, 255, 20%) | #a931ff33 | |
rgb(169, 49, 255, 40%) | #a931ff4C | |
rgb(169, 49, 255, 60%) | #a931ff99 | |
rgb(169, 49, 255, 80%) | #a931ffCC | |
rgb(169, 49, 255, 100%) | #a931ffFF |
Saturated and desaturated colors of #a931ff
HSL Code | Preview |
---|---|
hsl(275, 10%, 60%) | |
hsl(275, 20%, 60%) | |
hsl(275, 40%, 60%) | |
hsl(275, 60%, 60%) | |
hsl(275, 80%, 60%) | |
hsl(275, 100%, 60%) |
#a931ff Color Usage In CSS
body { color: #a931ff; } p { color: rgb(169, 49, 255); } header { border-bottom:1px solid #a931ff; }