#ba05fa Color
Color Codes | |
---|---|
Hex Code | #ba05fa |
RGB Code | rgb(186, 05, 250) |
HSL Code | hsl(284, 96%, 50%) |
#ba05fa Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 05, 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(284, 96%, 50%); }
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 #ba05fa
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 05, 250, 10%) | #ba05fa1a | |
rgb(186, 05, 250, 20%) | #ba05fa33 | |
rgb(186, 05, 250, 40%) | #ba05fa4C | |
rgb(186, 05, 250, 60%) | #ba05fa99 | |
rgb(186, 05, 250, 80%) | #ba05faCC | |
rgb(186, 05, 250, 100%) | #ba05faFF |
Saturated and desaturated colors of #ba05fa
HSL Code | Preview |
---|---|
hsl(284, 10%, 50%) | |
hsl(284, 20%, 50%) | |
hsl(284, 40%, 50%) | |
hsl(284, 60%, 50%) | |
hsl(284, 80%, 50%) | |
hsl(284, 100%, 50%) |
#ba05fa Color Usage In CSS
body { color: #ba05fa; } p { color: rgb(186, 05, 250); } header { border-bottom:1px solid #ba05fa; }