#6e54aa Color
Color Codes | |
---|---|
Hex Code | #6e54aa |
RGB Code | rgb(110, 84, 170) |
HSL Code | hsl(258, 34%, 50%) |
#6e54aa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(110, 84, 170); }
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(258, 34%, 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 #6e54aa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(110, 84, 170, 10%) | #6e54aa1a | |
rgb(110, 84, 170, 20%) | #6e54aa33 | |
rgb(110, 84, 170, 40%) | #6e54aa4C | |
rgb(110, 84, 170, 60%) | #6e54aa99 | |
rgb(110, 84, 170, 80%) | #6e54aaCC | |
rgb(110, 84, 170, 100%) | #6e54aaFF |
Saturated and desaturated colors of #6e54aa
HSL Code | Preview |
---|---|
hsl(258, 10%, 50%) | |
hsl(258, 20%, 50%) | |
hsl(258, 40%, 50%) | |
hsl(258, 60%, 50%) | |
hsl(258, 80%, 50%) | |
hsl(258, 100%, 50%) |
#6e54aa Color Usage In CSS
body { color: #6e54aa; } p { color: rgb(110, 84, 170); } header { border-bottom:1px solid #6e54aa; }