#9a20ac Color
Color Codes | |
---|---|
Hex Code | #9a20ac |
RGB Code | rgb(154, 32, 172) |
HSL Code | hsl(292, 69%, 40%) |
#9a20ac Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(154, 32, 172); }
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(292, 69%, 40%); }
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 #9a20ac
RGB Code | Hex Code | Preview |
---|---|---|
rgb(154, 32, 172, 10%) | #9a20ac1a | |
rgb(154, 32, 172, 20%) | #9a20ac33 | |
rgb(154, 32, 172, 40%) | #9a20ac4C | |
rgb(154, 32, 172, 60%) | #9a20ac99 | |
rgb(154, 32, 172, 80%) | #9a20acCC | |
rgb(154, 32, 172, 100%) | #9a20acFF |
Saturated and desaturated colors of #9a20ac
HSL Code | Preview |
---|---|
hsl(292, 10%, 40%) | |
hsl(292, 20%, 40%) | |
hsl(292, 40%, 40%) | |
hsl(292, 60%, 40%) | |
hsl(292, 80%, 40%) | |
hsl(292, 100%, 40%) |
#9a20ac Color Usage In CSS
body { color: #9a20ac; } p { color: rgb(154, 32, 172); } header { border-bottom:1px solid #9a20ac; }