#8f7bce Color
Color Codes | |
---|---|
Hex Code | #8f7bce |
RGB Code | rgb(143, 123, 206) |
HSL Code | hsl(254, 46%, 65%) |
#8f7bce Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(143, 123, 206); }
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(254, 46%, 65%); }
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 #8f7bce
RGB Code | Hex Code | Preview |
---|---|---|
rgb(143, 123, 206, 10%) | #8f7bce1a | |
rgb(143, 123, 206, 20%) | #8f7bce33 | |
rgb(143, 123, 206, 40%) | #8f7bce4C | |
rgb(143, 123, 206, 60%) | #8f7bce99 | |
rgb(143, 123, 206, 80%) | #8f7bceCC | |
rgb(143, 123, 206, 100%) | #8f7bceFF |
Saturated and desaturated colors of #8f7bce
HSL Code | Preview |
---|---|
hsl(254, 10%, 65%) | |
hsl(254, 20%, 65%) | |
hsl(254, 40%, 65%) | |
hsl(254, 60%, 65%) | |
hsl(254, 80%, 65%) | |
hsl(254, 100%, 65%) |
#8f7bce Color Usage In CSS
body { color: #8f7bce; } p { color: rgb(143, 123, 206); } header { border-bottom:1px solid #8f7bce; }