#8957e1 Color
Color Codes | |
---|---|
Hex Code | #8957e1 |
RGB Code | rgb(137, 87, 225) |
HSL Code | hsl(262, 70%, 61%) |
#8957e1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(137, 87, 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(262, 70%, 61%); }
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 #8957e1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(137, 87, 225, 10%) | #8957e11a | |
rgb(137, 87, 225, 20%) | #8957e133 | |
rgb(137, 87, 225, 40%) | #8957e14C | |
rgb(137, 87, 225, 60%) | #8957e199 | |
rgb(137, 87, 225, 80%) | #8957e1CC | |
rgb(137, 87, 225, 100%) | #8957e1FF |
Saturated and desaturated colors of #8957e1
HSL Code | Preview |
---|---|
hsl(262, 10%, 61%) | |
hsl(262, 20%, 61%) | |
hsl(262, 40%, 61%) | |
hsl(262, 60%, 61%) | |
hsl(262, 80%, 61%) | |
hsl(262, 100%, 61%) |
#8957e1 Color Usage In CSS
body { color: #8957e1; } p { color: rgb(137, 87, 225); } header { border-bottom:1px solid #8957e1; }