#9b6c9b Color
Color Codes | |
---|---|
Hex Code | #9b6c9b |
RGB Code | rgb(155, 108, 155) |
HSL Code | hsl(300, 19%, 52%) |
#9b6c9b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(155, 108, 155); }
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(300, 19%, 52%); }
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 #9b6c9b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(155, 108, 155, 10%) | #9b6c9b1a | |
rgb(155, 108, 155, 20%) | #9b6c9b33 | |
rgb(155, 108, 155, 40%) | #9b6c9b4C | |
rgb(155, 108, 155, 60%) | #9b6c9b99 | |
rgb(155, 108, 155, 80%) | #9b6c9bCC | |
rgb(155, 108, 155, 100%) | #9b6c9bFF |
Saturated and desaturated colors of #9b6c9b
HSL Code | Preview |
---|---|
hsl(300, 10%, 52%) | |
hsl(300, 20%, 52%) | |
hsl(300, 40%, 52%) | |
hsl(300, 60%, 52%) | |
hsl(300, 80%, 52%) | |
hsl(300, 100%, 52%) |
#9b6c9b Color Usage In CSS
body { color: #9b6c9b; } p { color: rgb(155, 108, 155); } header { border-bottom:1px solid #9b6c9b; }