#a751da Color
Color Codes | |
---|---|
Hex Code | #a751da |
RGB Code | rgb(167, 81, 218) |
HSL Code | hsl(278, 65%, 59%) |
#a751da Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(167, 81, 218); }
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(278, 65%, 59%); }
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 #a751da
RGB Code | Hex Code | Preview |
---|---|---|
rgb(167, 81, 218, 10%) | #a751da1a | |
rgb(167, 81, 218, 20%) | #a751da33 | |
rgb(167, 81, 218, 40%) | #a751da4C | |
rgb(167, 81, 218, 60%) | #a751da99 | |
rgb(167, 81, 218, 80%) | #a751daCC | |
rgb(167, 81, 218, 100%) | #a751daFF |
Saturated and desaturated colors of #a751da
HSL Code | Preview |
---|---|
hsl(278, 10%, 59%) | |
hsl(278, 20%, 59%) | |
hsl(278, 40%, 59%) | |
hsl(278, 60%, 59%) | |
hsl(278, 80%, 59%) | |
hsl(278, 100%, 59%) |
#a751da Color Usage In CSS
body { color: #a751da; } p { color: rgb(167, 81, 218); } header { border-bottom:1px solid #a751da; }