#976db2 Color
Color Codes | |
---|---|
Hex Code | #976db2 |
RGB Code | rgb(151, 109, 178) |
HSL Code | hsl(277, 31%, 56%) |
#976db2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(151, 109, 178); }
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(277, 31%, 56%); }
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 #976db2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(151, 109, 178, 10%) | #976db21a | |
rgb(151, 109, 178, 20%) | #976db233 | |
rgb(151, 109, 178, 40%) | #976db24C | |
rgb(151, 109, 178, 60%) | #976db299 | |
rgb(151, 109, 178, 80%) | #976db2CC | |
rgb(151, 109, 178, 100%) | #976db2FF |
Saturated and desaturated colors of #976db2
HSL Code | Preview |
---|---|
hsl(277, 10%, 56%) | |
hsl(277, 20%, 56%) | |
hsl(277, 40%, 56%) | |
hsl(277, 60%, 56%) | |
hsl(277, 80%, 56%) | |
hsl(277, 100%, 56%) |
#976db2 Color Usage In CSS
body { color: #976db2; } p { color: rgb(151, 109, 178); } header { border-bottom:1px solid #976db2; }