#ac1e54 Color
Color Codes | |
---|---|
Hex Code | #ac1e54 |
RGB Code | rgb(172, 30, 84) |
HSL Code | hsl(337, 70%, 40%) |
#ac1e54 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(172, 30, 84); }
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(337, 70%, 40%); }
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 #ac1e54
RGB Code | Hex Code | Preview |
---|---|---|
rgb(172, 30, 84, 10%) | #ac1e541a | |
rgb(172, 30, 84, 20%) | #ac1e5433 | |
rgb(172, 30, 84, 40%) | #ac1e544C | |
rgb(172, 30, 84, 60%) | #ac1e5499 | |
rgb(172, 30, 84, 80%) | #ac1e54CC | |
rgb(172, 30, 84, 100%) | #ac1e54FF |
Saturated and desaturated colors of #ac1e54
HSL Code | Preview |
---|---|
hsl(337, 10%, 40%) | |
hsl(337, 20%, 40%) | |
hsl(337, 40%, 40%) | |
hsl(337, 60%, 40%) | |
hsl(337, 80%, 40%) | |
hsl(337, 100%, 40%) |
#ac1e54 Color Usage In CSS
body { color: #ac1e54; } p { color: rgb(172, 30, 84); } header { border-bottom:1px solid #ac1e54; }