#ba95f2 Color
Color Codes | |
---|---|
Hex Code | #ba95f2 |
RGB Code | rgb(186, 149, 242) |
HSL Code | hsl(264, 78%, 77%) |
#ba95f2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 149, 242); }
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(264, 78%, 77%); }
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 #ba95f2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 149, 242, 10%) | #ba95f21a | |
rgb(186, 149, 242, 20%) | #ba95f233 | |
rgb(186, 149, 242, 40%) | #ba95f24C | |
rgb(186, 149, 242, 60%) | #ba95f299 | |
rgb(186, 149, 242, 80%) | #ba95f2CC | |
rgb(186, 149, 242, 100%) | #ba95f2FF |
Saturated and desaturated colors of #ba95f2
HSL Code | Preview |
---|---|
hsl(264, 10%, 77%) | |
hsl(264, 20%, 77%) | |
hsl(264, 40%, 77%) | |
hsl(264, 60%, 77%) | |
hsl(264, 80%, 77%) | |
hsl(264, 100%, 77%) |
#ba95f2 Color Usage In CSS
body { color: #ba95f2; } p { color: rgb(186, 149, 242); } header { border-bottom:1px solid #ba95f2; }