#8e51be Color
Color Codes | |
---|---|
Hex Code | #8e51be |
RGB Code | rgb(142, 81, 190) |
HSL Code | hsl(274, 46%, 53%) |
#8e51be Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(142, 81, 190); }
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(274, 46%, 53%); }
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 #8e51be
RGB Code | Hex Code | Preview |
---|---|---|
rgb(142, 81, 190, 10%) | #8e51be1a | |
rgb(142, 81, 190, 20%) | #8e51be33 | |
rgb(142, 81, 190, 40%) | #8e51be4C | |
rgb(142, 81, 190, 60%) | #8e51be99 | |
rgb(142, 81, 190, 80%) | #8e51beCC | |
rgb(142, 81, 190, 100%) | #8e51beFF |
Saturated and desaturated colors of #8e51be
HSL Code | Preview |
---|---|
hsl(274, 10%, 53%) | |
hsl(274, 20%, 53%) | |
hsl(274, 40%, 53%) | |
hsl(274, 60%, 53%) | |
hsl(274, 80%, 53%) | |
hsl(274, 100%, 53%) |
#8e51be Color Usage In CSS
body { color: #8e51be; } p { color: rgb(142, 81, 190); } header { border-bottom:1px solid #8e51be; }