#8a49ef Color
Color Codes | |
---|---|
Hex Code | #8a49ef |
RGB Code | rgb(138, 73, 239) |
HSL Code | hsl(263, 84%, 61%) |
#8a49ef Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(138, 73, 239); }
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(263, 84%, 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 #8a49ef
RGB Code | Hex Code | Preview |
---|---|---|
rgb(138, 73, 239, 10%) | #8a49ef1a | |
rgb(138, 73, 239, 20%) | #8a49ef33 | |
rgb(138, 73, 239, 40%) | #8a49ef4C | |
rgb(138, 73, 239, 60%) | #8a49ef99 | |
rgb(138, 73, 239, 80%) | #8a49efCC | |
rgb(138, 73, 239, 100%) | #8a49efFF |
Saturated and desaturated colors of #8a49ef
HSL Code | Preview |
---|---|
hsl(263, 10%, 61%) | |
hsl(263, 20%, 61%) | |
hsl(263, 40%, 61%) | |
hsl(263, 60%, 61%) | |
hsl(263, 80%, 61%) | |
hsl(263, 100%, 61%) |
#8a49ef Color Usage In CSS
body { color: #8a49ef; } p { color: rgb(138, 73, 239); } header { border-bottom:1px solid #8a49ef; }