#ba7fb6 Color
Color Codes | |
---|---|
Hex Code | #ba7fb6 |
RGB Code | rgb(186, 127, 182) |
HSL Code | hsl(304, 30%, 61%) |
#ba7fb6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(186, 127, 182); }
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(304, 30%, 61%); }
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 #ba7fb6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(186, 127, 182, 10%) | #ba7fb61a | |
rgb(186, 127, 182, 20%) | #ba7fb633 | |
rgb(186, 127, 182, 40%) | #ba7fb64C | |
rgb(186, 127, 182, 60%) | #ba7fb699 | |
rgb(186, 127, 182, 80%) | #ba7fb6CC | |
rgb(186, 127, 182, 100%) | #ba7fb6FF |
Saturated and desaturated colors of #ba7fb6
HSL Code | Preview |
---|---|
hsl(304, 10%, 61%) | |
hsl(304, 20%, 61%) | |
hsl(304, 40%, 61%) | |
hsl(304, 60%, 61%) | |
hsl(304, 80%, 61%) | |
hsl(304, 100%, 61%) |
#ba7fb6 Color Usage In CSS
body { color: #ba7fb6; } p { color: rgb(186, 127, 182); } header { border-bottom:1px solid #ba7fb6; }