#9c6bcb Color
Color Codes | |
---|---|
Hex Code | #9c6bcb |
RGB Code | rgb(156, 107, 203) |
HSL Code | hsl(271, 48%, 61%) |
#9c6bcb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 107, 203); }
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(271, 48%, 61%); }
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 #9c6bcb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 107, 203, 10%) | #9c6bcb1a | |
rgb(156, 107, 203, 20%) | #9c6bcb33 | |
rgb(156, 107, 203, 40%) | #9c6bcb4C | |
rgb(156, 107, 203, 60%) | #9c6bcb99 | |
rgb(156, 107, 203, 80%) | #9c6bcbCC | |
rgb(156, 107, 203, 100%) | #9c6bcbFF |
Saturated and desaturated colors of #9c6bcb
HSL Code | Preview |
---|---|
hsl(271, 10%, 61%) | |
hsl(271, 20%, 61%) | |
hsl(271, 40%, 61%) | |
hsl(271, 60%, 61%) | |
hsl(271, 80%, 61%) | |
hsl(271, 100%, 61%) |
#9c6bcb Color Usage In CSS
body { color: #9c6bcb; } p { color: rgb(156, 107, 203); } header { border-bottom:1px solid #9c6bcb; }