#ac51f6 Color
Color Codes | |
---|---|
Hex Code | #ac51f6 |
RGB Code | rgb(172, 81, 246) |
HSL Code | hsl(273, 90%, 64%) |
#ac51f6 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(172, 81, 246); }
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(273, 90%, 64%); }
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 #ac51f6
RGB Code | Hex Code | Preview |
---|---|---|
rgb(172, 81, 246, 10%) | #ac51f61a | |
rgb(172, 81, 246, 20%) | #ac51f633 | |
rgb(172, 81, 246, 40%) | #ac51f64C | |
rgb(172, 81, 246, 60%) | #ac51f699 | |
rgb(172, 81, 246, 80%) | #ac51f6CC | |
rgb(172, 81, 246, 100%) | #ac51f6FF |
Saturated and desaturated colors of #ac51f6
HSL Code | Preview |
---|---|
hsl(273, 10%, 64%) | |
hsl(273, 20%, 64%) | |
hsl(273, 40%, 64%) | |
hsl(273, 60%, 64%) | |
hsl(273, 80%, 64%) | |
hsl(273, 100%, 64%) |
#ac51f6 Color Usage In CSS
body { color: #ac51f6; } p { color: rgb(172, 81, 246); } header { border-bottom:1px solid #ac51f6; }