#aa8aeb Color
Color Codes | |
---|---|
Hex Code | #aa8aeb |
RGB Code | rgb(170, 138, 235) |
HSL Code | hsl(260, 71%, 73%) |
#aa8aeb Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(170, 138, 235); }
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(260, 71%, 73%); }
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 #aa8aeb
RGB Code | Hex Code | Preview |
---|---|---|
rgb(170, 138, 235, 10%) | #aa8aeb1a | |
rgb(170, 138, 235, 20%) | #aa8aeb33 | |
rgb(170, 138, 235, 40%) | #aa8aeb4C | |
rgb(170, 138, 235, 60%) | #aa8aeb99 | |
rgb(170, 138, 235, 80%) | #aa8aebCC | |
rgb(170, 138, 235, 100%) | #aa8aebFF |
Saturated and desaturated colors of #aa8aeb
HSL Code | Preview |
---|---|
hsl(260, 10%, 73%) | |
hsl(260, 20%, 73%) | |
hsl(260, 40%, 73%) | |
hsl(260, 60%, 73%) | |
hsl(260, 80%, 73%) | |
hsl(260, 100%, 73%) |
#aa8aeb Color Usage In CSS
body { color: #aa8aeb; } p { color: rgb(170, 138, 235); } header { border-bottom:1px solid #aa8aeb; }