#8a7f9a Color
Color Codes | |
---|---|
Hex Code | #8a7f9a |
RGB Code | rgb(138, 127, 154) |
HSL Code | hsl(264, 12%, 55%) |
#8a7f9a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(138, 127, 154); }
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(264, 12%, 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 #8a7f9a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(138, 127, 154, 10%) | #8a7f9a1a | |
rgb(138, 127, 154, 20%) | #8a7f9a33 | |
rgb(138, 127, 154, 40%) | #8a7f9a4C | |
rgb(138, 127, 154, 60%) | #8a7f9a99 | |
rgb(138, 127, 154, 80%) | #8a7f9aCC | |
rgb(138, 127, 154, 100%) | #8a7f9aFF |
Saturated and desaturated colors of #8a7f9a
HSL Code | Preview |
---|---|
hsl(264, 10%, 55%) | |
hsl(264, 20%, 55%) | |
hsl(264, 40%, 55%) | |
hsl(264, 60%, 55%) | |
hsl(264, 80%, 55%) | |
hsl(264, 100%, 55%) |
#8a7f9a Color Usage In CSS
body { color: #8a7f9a; } p { color: rgb(138, 127, 154); } header { border-bottom:1px solid #8a7f9a; }