#9c6cf8 Color
Color Codes | |
---|---|
Hex Code | #9c6cf8 |
RGB Code | rgb(156, 108, 248) |
HSL Code | hsl(261, 91%, 70%) |
#9c6cf8 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 108, 248); }
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(261, 91%, 70%); }
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 #9c6cf8
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 108, 248, 10%) | #9c6cf81a | |
rgb(156, 108, 248, 20%) | #9c6cf833 | |
rgb(156, 108, 248, 40%) | #9c6cf84C | |
rgb(156, 108, 248, 60%) | #9c6cf899 | |
rgb(156, 108, 248, 80%) | #9c6cf8CC | |
rgb(156, 108, 248, 100%) | #9c6cf8FF |
Saturated and desaturated colors of #9c6cf8
HSL Code | Preview |
---|---|
hsl(261, 10%, 70%) | |
hsl(261, 20%, 70%) | |
hsl(261, 40%, 70%) | |
hsl(261, 60%, 70%) | |
hsl(261, 80%, 70%) | |
hsl(261, 100%, 70%) |
#9c6cf8 Color Usage In CSS
body { color: #9c6cf8; } p { color: rgb(156, 108, 248); } header { border-bottom:1px solid #9c6cf8; }