#ba8bee Color
Color Codes | |
---|---|
Hex Code | #ba8bee |
RGB Code | rgb(186, 139, 238) |
HSL Code | hsl(268, 74%, 74%) |
#ba8bee Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 139, 238); }
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(268, 74%, 74%); }
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 #ba8bee
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 139, 238, 10%) | #ba8bee1a | |
rgb(186, 139, 238, 20%) | #ba8bee33 | |
rgb(186, 139, 238, 40%) | #ba8bee4C | |
rgb(186, 139, 238, 60%) | #ba8bee99 | |
rgb(186, 139, 238, 80%) | #ba8beeCC | |
rgb(186, 139, 238, 100%) | #ba8beeFF |
Saturated and desaturated colors of #ba8bee
HSL Code | Preview |
---|---|
hsl(268, 10%, 74%) | |
hsl(268, 20%, 74%) | |
hsl(268, 40%, 74%) | |
hsl(268, 60%, 74%) | |
hsl(268, 80%, 74%) | |
hsl(268, 100%, 74%) |
#ba8bee Color Usage In CSS
body { color: #ba8bee; } p { color: rgb(186, 139, 238); } header { border-bottom:1px solid #ba8bee; }