#987aae Color
Color Codes | |
---|---|
Hex Code | #987aae |
RGB Code | rgb(152, 122, 174) |
HSL Code | hsl(275, 24%, 58%) |
#987aae Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(152, 122, 174); }
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(275, 24%, 58%); }
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 #987aae
RGB Code | Hex Code | Preview |
---|---|---|
rgb(152, 122, 174, 10%) | #987aae1a | |
rgb(152, 122, 174, 20%) | #987aae33 | |
rgb(152, 122, 174, 40%) | #987aae4C | |
rgb(152, 122, 174, 60%) | #987aae99 | |
rgb(152, 122, 174, 80%) | #987aaeCC | |
rgb(152, 122, 174, 100%) | #987aaeFF |
Saturated and desaturated colors of #987aae
HSL Code | Preview |
---|---|
hsl(275, 10%, 58%) | |
hsl(275, 20%, 58%) | |
hsl(275, 40%, 58%) | |
hsl(275, 60%, 58%) | |
hsl(275, 80%, 58%) | |
hsl(275, 100%, 58%) |
#987aae Color Usage In CSS
body { color: #987aae; } p { color: rgb(152, 122, 174); } header { border-bottom:1px solid #987aae; }