#a31ebb Color
Color Codes | |
---|---|
Hex Code | #a31ebb |
RGB Code | rgb(163, 30, 187) |
HSL Code | hsl(291, 72%, 43%) |
#a31ebb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(163, 30, 187); }
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(291, 72%, 43%); }
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 #a31ebb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(163, 30, 187, 10%) | #a31ebb1a | |
rgb(163, 30, 187, 20%) | #a31ebb33 | |
rgb(163, 30, 187, 40%) | #a31ebb4C | |
rgb(163, 30, 187, 60%) | #a31ebb99 | |
rgb(163, 30, 187, 80%) | #a31ebbCC | |
rgb(163, 30, 187, 100%) | #a31ebbFF |
Saturated and desaturated colors of #a31ebb
HSL Code | Preview |
---|---|
hsl(291, 10%, 43%) | |
hsl(291, 20%, 43%) | |
hsl(291, 40%, 43%) | |
hsl(291, 60%, 43%) | |
hsl(291, 80%, 43%) | |
hsl(291, 100%, 43%) |
#a31ebb Color Usage In CSS
body { color: #a31ebb; } p { color: rgb(163, 30, 187); } header { border-bottom:1px solid #a31ebb; }