#9c72dd Color
Color Codes | |
---|---|
Hex Code | #9c72dd |
RGB Code | rgb(156, 114, 221) |
HSL Code | hsl(264, 61%, 66%) |
#9c72dd Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(156, 114, 221); }
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(264, 61%, 66%); }
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 #9c72dd
RGB Code | Hex Code | Preview |
---|---|---|
rgb(156, 114, 221, 10%) | #9c72dd1a | |
rgb(156, 114, 221, 20%) | #9c72dd33 | |
rgb(156, 114, 221, 40%) | #9c72dd4C | |
rgb(156, 114, 221, 60%) | #9c72dd99 | |
rgb(156, 114, 221, 80%) | #9c72ddCC | |
rgb(156, 114, 221, 100%) | #9c72ddFF |
Saturated and desaturated colors of #9c72dd
HSL Code | Preview |
---|---|
hsl(264, 10%, 66%) | |
hsl(264, 20%, 66%) | |
hsl(264, 40%, 66%) | |
hsl(264, 60%, 66%) | |
hsl(264, 80%, 66%) | |
hsl(264, 100%, 66%) |
#9c72dd Color Usage In CSS
body { color: #9c72dd; } p { color: rgb(156, 114, 221); } header { border-bottom:1px solid #9c72dd; }