#8e1ab9 Color
Color Codes | |
---|---|
Hex Code | #8e1ab9 |
RGB Code | rgb(142, 26, 185) |
HSL Code | hsl(284, 75%, 41%) |
#8e1ab9 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(142, 26, 185); }
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(284, 75%, 41%); }
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 #8e1ab9
RGB Code | Hex Code | Preview |
---|---|---|
rgb(142, 26, 185, 10%) | #8e1ab91a | |
rgb(142, 26, 185, 20%) | #8e1ab933 | |
rgb(142, 26, 185, 40%) | #8e1ab94C | |
rgb(142, 26, 185, 60%) | #8e1ab999 | |
rgb(142, 26, 185, 80%) | #8e1ab9CC | |
rgb(142, 26, 185, 100%) | #8e1ab9FF |
Saturated and desaturated colors of #8e1ab9
HSL Code | Preview |
---|---|
hsl(284, 10%, 41%) | |
hsl(284, 20%, 41%) | |
hsl(284, 40%, 41%) | |
hsl(284, 60%, 41%) | |
hsl(284, 80%, 41%) | |
hsl(284, 100%, 41%) |
#8e1ab9 Color Usage In CSS
body { color: #8e1ab9; } p { color: rgb(142, 26, 185); } header { border-bottom:1px solid #8e1ab9; }