#ba87b4 Color
Color Codes | |
---|---|
Hex Code | #ba87b4 |
RGB Code | rgb(186, 135, 180) |
HSL Code | hsl(307, 27%, 63%) |
#ba87b4 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 135, 180); }
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(307, 27%, 63%); }
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 #ba87b4
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 135, 180, 10%) | #ba87b41a | |
rgb(186, 135, 180, 20%) | #ba87b433 | |
rgb(186, 135, 180, 40%) | #ba87b44C | |
rgb(186, 135, 180, 60%) | #ba87b499 | |
rgb(186, 135, 180, 80%) | #ba87b4CC | |
rgb(186, 135, 180, 100%) | #ba87b4FF |
Saturated and desaturated colors of #ba87b4
HSL Code | Preview |
---|---|
hsl(307, 10%, 63%) | |
hsl(307, 20%, 63%) | |
hsl(307, 40%, 63%) | |
hsl(307, 60%, 63%) | |
hsl(307, 80%, 63%) | |
hsl(307, 100%, 63%) |
#ba87b4 Color Usage In CSS
body { color: #ba87b4; } p { color: rgb(186, 135, 180); } header { border-bottom:1px solid #ba87b4; }