#501bef Color
Color Codes | |
---|---|
Hex Code | #501bef |
RGB Code | rgb(80, 27, 239) |
HSL Code | hsl(255, 87%, 52%) |
#501bef Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(80, 27, 239); }
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(255, 87%, 52%); }
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 #501bef
RGB Code | Hex Code | Preview |
---|---|---|
rgb(80, 27, 239, 10%) | #501bef1a | |
rgb(80, 27, 239, 20%) | #501bef33 | |
rgb(80, 27, 239, 40%) | #501bef4C | |
rgb(80, 27, 239, 60%) | #501bef99 | |
rgb(80, 27, 239, 80%) | #501befCC | |
rgb(80, 27, 239, 100%) | #501befFF |
Saturated and desaturated colors of #501bef
HSL Code | Preview |
---|---|
hsl(255, 10%, 52%) | |
hsl(255, 20%, 52%) | |
hsl(255, 40%, 52%) | |
hsl(255, 60%, 52%) | |
hsl(255, 80%, 52%) | |
hsl(255, 100%, 52%) |
#501bef Color Usage In CSS
body { color: #501bef; } p { color: rgb(80, 27, 239); } header { border-bottom:1px solid #501bef; }