#9c5ab3 Color
Color Codes | |
---|---|
Hex Code | #9c5ab3 |
RGB Code | rgb(156, 90, 179) |
HSL Code | hsl(284, 37%, 53%) |
#9c5ab3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 90, 179); }
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(284, 37%, 53%); }
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 #9c5ab3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 90, 179, 10%) | #9c5ab31a | |
rgb(156, 90, 179, 20%) | #9c5ab333 | |
rgb(156, 90, 179, 40%) | #9c5ab34C | |
rgb(156, 90, 179, 60%) | #9c5ab399 | |
rgb(156, 90, 179, 80%) | #9c5ab3CC | |
rgb(156, 90, 179, 100%) | #9c5ab3FF |
Saturated and desaturated colors of #9c5ab3
HSL Code | Preview |
---|---|
hsl(284, 10%, 53%) | |
hsl(284, 20%, 53%) | |
hsl(284, 40%, 53%) | |
hsl(284, 60%, 53%) | |
hsl(284, 80%, 53%) | |
hsl(284, 100%, 53%) |
#9c5ab3 Color Usage In CSS
body { color: #9c5ab3; } p { color: rgb(156, 90, 179); } header { border-bottom:1px solid #9c5ab3; }