#ac45cf Color
Color Codes | |
---|---|
Hex Code | #ac45cf |
RGB Code | rgb(172, 69, 207) |
HSL Code | hsl(285, 59%, 54%) |
#ac45cf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(172, 69, 207); }
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(285, 59%, 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 #ac45cf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(172, 69, 207, 10%) | #ac45cf1a | |
rgb(172, 69, 207, 20%) | #ac45cf33 | |
rgb(172, 69, 207, 40%) | #ac45cf4C | |
rgb(172, 69, 207, 60%) | #ac45cf99 | |
rgb(172, 69, 207, 80%) | #ac45cfCC | |
rgb(172, 69, 207, 100%) | #ac45cfFF |
Saturated and desaturated colors of #ac45cf
HSL Code | Preview |
---|---|
hsl(285, 10%, 54%) | |
hsl(285, 20%, 54%) | |
hsl(285, 40%, 54%) | |
hsl(285, 60%, 54%) | |
hsl(285, 80%, 54%) | |
hsl(285, 100%, 54%) |
#ac45cf Color Usage In CSS
body { color: #ac45cf; } p { color: rgb(172, 69, 207); } header { border-bottom:1px solid #ac45cf; }