#9b42b3 Color
Color Codes | |
---|---|
Hex Code | #9b42b3 |
RGB Code | rgb(155, 66, 179) |
HSL Code | hsl(287, 46%, 48%) |
#9b42b3 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(155, 66, 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(287, 46%, 48%); }
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 #9b42b3
RGB Code | Hex Code | Preview |
---|---|---|
rgb(155, 66, 179, 10%) | #9b42b31a | |
rgb(155, 66, 179, 20%) | #9b42b333 | |
rgb(155, 66, 179, 40%) | #9b42b34C | |
rgb(155, 66, 179, 60%) | #9b42b399 | |
rgb(155, 66, 179, 80%) | #9b42b3CC | |
rgb(155, 66, 179, 100%) | #9b42b3FF |
Saturated and desaturated colors of #9b42b3
HSL Code | Preview |
---|---|
hsl(287, 10%, 48%) | |
hsl(287, 20%, 48%) | |
hsl(287, 40%, 48%) | |
hsl(287, 60%, 48%) | |
hsl(287, 80%, 48%) | |
hsl(287, 100%, 48%) |
#9b42b3 Color Usage In CSS
body { color: #9b42b3; } p { color: rgb(155, 66, 179); } header { border-bottom:1px solid #9b42b3; }