#8a5edd Color
Color Codes | |
---|---|
Hex Code | #8a5edd |
RGB Code | rgb(138, 94, 221) |
HSL Code | hsl(261, 65%, 62%) |
#8a5edd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(138, 94, 221); }
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(261, 65%, 62%); }
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 #8a5edd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(138, 94, 221, 10%) | #8a5edd1a | |
rgb(138, 94, 221, 20%) | #8a5edd33 | |
rgb(138, 94, 221, 40%) | #8a5edd4C | |
rgb(138, 94, 221, 60%) | #8a5edd99 | |
rgb(138, 94, 221, 80%) | #8a5eddCC | |
rgb(138, 94, 221, 100%) | #8a5eddFF |
Saturated and desaturated colors of #8a5edd
HSL Code | Preview |
---|---|
hsl(261, 10%, 62%) | |
hsl(261, 20%, 62%) | |
hsl(261, 40%, 62%) | |
hsl(261, 60%, 62%) | |
hsl(261, 80%, 62%) | |
hsl(261, 100%, 62%) |
#8a5edd Color Usage In CSS
body { color: #8a5edd; } p { color: rgb(138, 94, 221); } header { border-bottom:1px solid #8a5edd; }