#b502ce Color
Color Codes | |
---|---|
Hex Code | #b502ce |
RGB Code | rgb(181, 02, 206) |
HSL Code | hsl(293, 98%, 41%) |
#b502ce Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(181, 02, 206); }
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(293, 98%, 41%); }
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 #b502ce
RGB Code | Hex Code | Preview |
---|---|---|
rgb(181, 02, 206, 10%) | #b502ce1a | |
rgb(181, 02, 206, 20%) | #b502ce33 | |
rgb(181, 02, 206, 40%) | #b502ce4C | |
rgb(181, 02, 206, 60%) | #b502ce99 | |
rgb(181, 02, 206, 80%) | #b502ceCC | |
rgb(181, 02, 206, 100%) | #b502ceFF |
Saturated and desaturated colors of #b502ce
HSL Code | Preview |
---|---|
hsl(293, 10%, 41%) | |
hsl(293, 20%, 41%) | |
hsl(293, 40%, 41%) | |
hsl(293, 60%, 41%) | |
hsl(293, 80%, 41%) | |
hsl(293, 100%, 41%) |
#b502ce Color Usage In CSS
body { color: #b502ce; } p { color: rgb(181, 02, 206); } header { border-bottom:1px solid #b502ce; }