#ba4caf Color
Color Codes | |
---|---|
Hex Code | #ba4caf |
RGB Code | rgb(186, 76, 175) |
HSL Code | hsl(306, 44%, 51%) |
#ba4caf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 76, 175); }
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(306, 44%, 51%); }
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 #ba4caf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 76, 175, 10%) | #ba4caf1a | |
rgb(186, 76, 175, 20%) | #ba4caf33 | |
rgb(186, 76, 175, 40%) | #ba4caf4C | |
rgb(186, 76, 175, 60%) | #ba4caf99 | |
rgb(186, 76, 175, 80%) | #ba4cafCC | |
rgb(186, 76, 175, 100%) | #ba4cafFF |
Saturated and desaturated colors of #ba4caf
HSL Code | Preview |
---|---|
hsl(306, 10%, 51%) | |
hsl(306, 20%, 51%) | |
hsl(306, 40%, 51%) | |
hsl(306, 60%, 51%) | |
hsl(306, 80%, 51%) | |
hsl(306, 100%, 51%) |
#ba4caf Color Usage In CSS
body { color: #ba4caf; } p { color: rgb(186, 76, 175); } header { border-bottom:1px solid #ba4caf; }