#ab4fab Color
Color Codes | |
---|---|
Hex Code | #ab4fab |
RGB Code | rgb(171, 79, 171) |
HSL Code | hsl(300, 37%, 49%) |
#ab4fab Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(171, 79, 171); }
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(300, 37%, 49%); }
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 #ab4fab
RGB Code | Hex Code | Preview |
---|---|---|
rgb(171, 79, 171, 10%) | #ab4fab1a | |
rgb(171, 79, 171, 20%) | #ab4fab33 | |
rgb(171, 79, 171, 40%) | #ab4fab4C | |
rgb(171, 79, 171, 60%) | #ab4fab99 | |
rgb(171, 79, 171, 80%) | #ab4fabCC | |
rgb(171, 79, 171, 100%) | #ab4fabFF |
Saturated and desaturated colors of #ab4fab
HSL Code | Preview |
---|---|
hsl(300, 10%, 49%) | |
hsl(300, 20%, 49%) | |
hsl(300, 40%, 49%) | |
hsl(300, 60%, 49%) | |
hsl(300, 80%, 49%) | |
hsl(300, 100%, 49%) |
#ab4fab Color Usage In CSS
body { color: #ab4fab; } p { color: rgb(171, 79, 171); } header { border-bottom:1px solid #ab4fab; }