#8f7a9d Color
Color Codes | |
---|---|
Hex Code | #8f7a9d |
RGB Code | rgb(143, 122, 157) |
HSL Code | hsl(276, 15%, 55%) |
#8f7a9d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(143, 122, 157); }
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(276, 15%, 55%); }
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 #8f7a9d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(143, 122, 157, 10%) | #8f7a9d1a | |
rgb(143, 122, 157, 20%) | #8f7a9d33 | |
rgb(143, 122, 157, 40%) | #8f7a9d4C | |
rgb(143, 122, 157, 60%) | #8f7a9d99 | |
rgb(143, 122, 157, 80%) | #8f7a9dCC | |
rgb(143, 122, 157, 100%) | #8f7a9dFF |
Saturated and desaturated colors of #8f7a9d
HSL Code | Preview |
---|---|
hsl(276, 10%, 55%) | |
hsl(276, 20%, 55%) | |
hsl(276, 40%, 55%) | |
hsl(276, 60%, 55%) | |
hsl(276, 80%, 55%) | |
hsl(276, 100%, 55%) |
#8f7a9d Color Usage In CSS
body { color: #8f7a9d; } p { color: rgb(143, 122, 157); } header { border-bottom:1px solid #8f7a9d; }