#ac4af7 Color
Color Codes | |
---|---|
Hex Code | #ac4af7 |
RGB Code | rgb(172, 74, 247) |
HSL Code | hsl(274, 92%, 63%) |
#ac4af7 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(172, 74, 247); }
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(274, 92%, 63%); }
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 #ac4af7
RGB Code | Hex Code | Preview |
---|---|---|
rgb(172, 74, 247, 10%) | #ac4af71a | |
rgb(172, 74, 247, 20%) | #ac4af733 | |
rgb(172, 74, 247, 40%) | #ac4af74C | |
rgb(172, 74, 247, 60%) | #ac4af799 | |
rgb(172, 74, 247, 80%) | #ac4af7CC | |
rgb(172, 74, 247, 100%) | #ac4af7FF |
Saturated and desaturated colors of #ac4af7
HSL Code | Preview |
---|---|
hsl(274, 10%, 63%) | |
hsl(274, 20%, 63%) | |
hsl(274, 40%, 63%) | |
hsl(274, 60%, 63%) | |
hsl(274, 80%, 63%) | |
hsl(274, 100%, 63%) |
#ac4af7 Color Usage In CSS
body { color: #ac4af7; } p { color: rgb(172, 74, 247); } header { border-bottom:1px solid #ac4af7; }