#b21aaf Color
Color Codes | |
---|---|
Hex Code | #b21aaf |
RGB Code | rgb(178, 26, 175) |
HSL Code | hsl(301, 75%, 40%) |
#b21aaf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(178, 26, 175); }
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(301, 75%, 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 #b21aaf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(178, 26, 175, 10%) | #b21aaf1a | |
rgb(178, 26, 175, 20%) | #b21aaf33 | |
rgb(178, 26, 175, 40%) | #b21aaf4C | |
rgb(178, 26, 175, 60%) | #b21aaf99 | |
rgb(178, 26, 175, 80%) | #b21aafCC | |
rgb(178, 26, 175, 100%) | #b21aafFF |
Saturated and desaturated colors of #b21aaf
HSL Code | Preview |
---|---|
hsl(301, 10%, 40%) | |
hsl(301, 20%, 40%) | |
hsl(301, 40%, 40%) | |
hsl(301, 60%, 40%) | |
hsl(301, 80%, 40%) | |
hsl(301, 100%, 40%) |
#b21aaf Color Usage In CSS
body { color: #b21aaf; } p { color: rgb(178, 26, 175); } header { border-bottom:1px solid #b21aaf; }