#ba2efa Color
Color Codes | |
---|---|
Hex Code | #ba2efa |
RGB Code | rgb(186, 46, 250) |
HSL Code | hsl(281, 95%, 58%) |
#ba2efa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 46, 250); }
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(281, 95%, 58%); }
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 #ba2efa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 46, 250, 10%) | #ba2efa1a | |
rgb(186, 46, 250, 20%) | #ba2efa33 | |
rgb(186, 46, 250, 40%) | #ba2efa4C | |
rgb(186, 46, 250, 60%) | #ba2efa99 | |
rgb(186, 46, 250, 80%) | #ba2efaCC | |
rgb(186, 46, 250, 100%) | #ba2efaFF |
Saturated and desaturated colors of #ba2efa
HSL Code | Preview |
---|---|
hsl(281, 10%, 58%) | |
hsl(281, 20%, 58%) | |
hsl(281, 40%, 58%) | |
hsl(281, 60%, 58%) | |
hsl(281, 80%, 58%) | |
hsl(281, 100%, 58%) |
#ba2efa Color Usage In CSS
body { color: #ba2efa; } p { color: rgb(186, 46, 250); } header { border-bottom:1px solid #ba2efa; }