#a297ab Color
Color Codes | |
---|---|
Hex Code | #a297ab |
RGB Code | rgb(162, 151, 171) |
HSL Code | hsl(273, 11%, 63%) |
#a297ab Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(162, 151, 171); }
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(273, 11%, 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 #a297ab
RGB Code | Hex Code | Preview |
---|---|---|
rgb(162, 151, 171, 10%) | #a297ab1a | |
rgb(162, 151, 171, 20%) | #a297ab33 | |
rgb(162, 151, 171, 40%) | #a297ab4C | |
rgb(162, 151, 171, 60%) | #a297ab99 | |
rgb(162, 151, 171, 80%) | #a297abCC | |
rgb(162, 151, 171, 100%) | #a297abFF |
Saturated and desaturated colors of #a297ab
HSL Code | Preview |
---|---|
hsl(273, 10%, 63%) | |
hsl(273, 20%, 63%) | |
hsl(273, 40%, 63%) | |
hsl(273, 60%, 63%) | |
hsl(273, 80%, 63%) | |
hsl(273, 100%, 63%) |
#a297ab Color Usage In CSS
body { color: #a297ab; } p { color: rgb(162, 151, 171); } header { border-bottom:1px solid #a297ab; }