#9a3189 Color
Color Codes | |
---|---|
Hex Code | #9a3189 |
RGB Code | rgb(154, 49, 137) |
HSL Code | hsl(310, 52%, 40%) |
#9a3189 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(154, 49, 137); }
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(310, 52%, 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 #9a3189
RGB Code | Hex Code | Preview |
---|---|---|
rgb(154, 49, 137, 10%) | #9a31891a | |
rgb(154, 49, 137, 20%) | #9a318933 | |
rgb(154, 49, 137, 40%) | #9a31894C | |
rgb(154, 49, 137, 60%) | #9a318999 | |
rgb(154, 49, 137, 80%) | #9a3189CC | |
rgb(154, 49, 137, 100%) | #9a3189FF |
Saturated and desaturated colors of #9a3189
HSL Code | Preview |
---|---|
hsl(310, 10%, 40%) | |
hsl(310, 20%, 40%) | |
hsl(310, 40%, 40%) | |
hsl(310, 60%, 40%) | |
hsl(310, 80%, 40%) | |
hsl(310, 100%, 40%) |
#9a3189 Color Usage In CSS
body { color: #9a3189; } p { color: rgb(154, 49, 137); } header { border-bottom:1px solid #9a3189; }