#b52ab8 Color
Color Codes | |
---|---|
Hex Code | #b52ab8 |
RGB Code | rgb(181, 42, 184) |
HSL Code | hsl(299, 63%, 44%) |
#b52ab8 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(181, 42, 184); }
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(299, 63%, 44%); }
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 #b52ab8
RGB Code | Hex Code | Preview |
---|---|---|
rgb(181, 42, 184, 10%) | #b52ab81a | |
rgb(181, 42, 184, 20%) | #b52ab833 | |
rgb(181, 42, 184, 40%) | #b52ab84C | |
rgb(181, 42, 184, 60%) | #b52ab899 | |
rgb(181, 42, 184, 80%) | #b52ab8CC | |
rgb(181, 42, 184, 100%) | #b52ab8FF |
Saturated and desaturated colors of #b52ab8
HSL Code | Preview |
---|---|
hsl(299, 10%, 44%) | |
hsl(299, 20%, 44%) | |
hsl(299, 40%, 44%) | |
hsl(299, 60%, 44%) | |
hsl(299, 80%, 44%) | |
hsl(299, 100%, 44%) |
#b52ab8 Color Usage In CSS
body { color: #b52ab8; } p { color: rgb(181, 42, 184); } header { border-bottom:1px solid #b52ab8; }