#ab34df Color
Color Codes | |
---|---|
Hex Code | #ab34df |
RGB Code | rgb(171, 52, 223) |
HSL Code | hsl(282, 73%, 54%) |
#ab34df Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(171, 52, 223); }
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(282, 73%, 54%); }
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 #ab34df
RGB Code | Hex Code | Preview |
---|---|---|
rgb(171, 52, 223, 10%) | #ab34df1a | |
rgb(171, 52, 223, 20%) | #ab34df33 | |
rgb(171, 52, 223, 40%) | #ab34df4C | |
rgb(171, 52, 223, 60%) | #ab34df99 | |
rgb(171, 52, 223, 80%) | #ab34dfCC | |
rgb(171, 52, 223, 100%) | #ab34dfFF |
Saturated and desaturated colors of #ab34df
HSL Code | Preview |
---|---|
hsl(282, 10%, 54%) | |
hsl(282, 20%, 54%) | |
hsl(282, 40%, 54%) | |
hsl(282, 60%, 54%) | |
hsl(282, 80%, 54%) | |
hsl(282, 100%, 54%) |
#ab34df Color Usage In CSS
body { color: #ab34df; } p { color: rgb(171, 52, 223); } header { border-bottom:1px solid #ab34df; }