#ab71b5 Color
Color Codes | |
---|---|
Hex Code | #ab71b5 |
RGB Code | rgb(171, 113, 181) |
HSL Code | hsl(291, 31%, 58%) |
#ab71b5 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(171, 113, 181); }
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(291, 31%, 58%); }
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 #ab71b5
RGB Code | Hex Code | Preview |
---|---|---|
rgb(171, 113, 181, 10%) | #ab71b51a | |
rgb(171, 113, 181, 20%) | #ab71b533 | |
rgb(171, 113, 181, 40%) | #ab71b54C | |
rgb(171, 113, 181, 60%) | #ab71b599 | |
rgb(171, 113, 181, 80%) | #ab71b5CC | |
rgb(171, 113, 181, 100%) | #ab71b5FF |
Saturated and desaturated colors of #ab71b5
HSL Code | Preview |
---|---|
hsl(291, 10%, 58%) | |
hsl(291, 20%, 58%) | |
hsl(291, 40%, 58%) | |
hsl(291, 60%, 58%) | |
hsl(291, 80%, 58%) | |
hsl(291, 100%, 58%) |
#ab71b5 Color Usage In CSS
body { color: #ab71b5; } p { color: rgb(171, 113, 181); } header { border-bottom:1px solid #ab71b5; }