#8f1ae1 Color
Color Codes | |
---|---|
Hex Code | #8f1ae1 |
RGB Code | rgb(143, 26, 225) |
HSL Code | hsl(275, 79%, 49%) |
#8f1ae1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(143, 26, 225); }
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, 79%, 49%); }
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 #8f1ae1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(143, 26, 225, 10%) | #8f1ae11a | |
rgb(143, 26, 225, 20%) | #8f1ae133 | |
rgb(143, 26, 225, 40%) | #8f1ae14C | |
rgb(143, 26, 225, 60%) | #8f1ae199 | |
rgb(143, 26, 225, 80%) | #8f1ae1CC | |
rgb(143, 26, 225, 100%) | #8f1ae1FF |
Saturated and desaturated colors of #8f1ae1
HSL Code | Preview |
---|---|
hsl(275, 10%, 49%) | |
hsl(275, 20%, 49%) | |
hsl(275, 40%, 49%) | |
hsl(275, 60%, 49%) | |
hsl(275, 80%, 49%) | |
hsl(275, 100%, 49%) |
#8f1ae1 Color Usage In CSS
body { color: #8f1ae1; } p { color: rgb(143, 26, 225); } header { border-bottom:1px solid #8f1ae1; }