#8e20cc Color
Color Codes | |
---|---|
Hex Code | #8e20cc |
RGB Code | rgb(142, 32, 204) |
HSL Code | hsl(278, 73%, 46%) |
#8e20cc Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(142, 32, 204); }
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(278, 73%, 46%); }
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 #8e20cc
RGB Code | Hex Code | Preview |
---|---|---|
rgb(142, 32, 204, 10%) | #8e20cc1a | |
rgb(142, 32, 204, 20%) | #8e20cc33 | |
rgb(142, 32, 204, 40%) | #8e20cc4C | |
rgb(142, 32, 204, 60%) | #8e20cc99 | |
rgb(142, 32, 204, 80%) | #8e20ccCC | |
rgb(142, 32, 204, 100%) | #8e20ccFF |
Saturated and desaturated colors of #8e20cc
HSL Code | Preview |
---|---|
hsl(278, 10%, 46%) | |
hsl(278, 20%, 46%) | |
hsl(278, 40%, 46%) | |
hsl(278, 60%, 46%) | |
hsl(278, 80%, 46%) | |
hsl(278, 100%, 46%) |
#8e20cc Color Usage In CSS
body { color: #8e20cc; } p { color: rgb(142, 32, 204); } header { border-bottom:1px solid #8e20cc; }