#ba10a1 Color
Color Codes | |
---|---|
Hex Code | #ba10a1 |
RGB Code | rgb(186, 16, 161) |
HSL Code | hsl(309, 84%, 40%) |
#ba10a1 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 16, 161); }
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(309, 84%, 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 #ba10a1
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 16, 161, 10%) | #ba10a11a | |
rgb(186, 16, 161, 20%) | #ba10a133 | |
rgb(186, 16, 161, 40%) | #ba10a14C | |
rgb(186, 16, 161, 60%) | #ba10a199 | |
rgb(186, 16, 161, 80%) | #ba10a1CC | |
rgb(186, 16, 161, 100%) | #ba10a1FF |
Saturated and desaturated colors of #ba10a1
HSL Code | Preview |
---|---|
hsl(309, 10%, 40%) | |
hsl(309, 20%, 40%) | |
hsl(309, 40%, 40%) | |
hsl(309, 60%, 40%) | |
hsl(309, 80%, 40%) | |
hsl(309, 100%, 40%) |
#ba10a1 Color Usage In CSS
body { color: #ba10a1; } p { color: rgb(186, 16, 161); } header { border-bottom:1px solid #ba10a1; }