#a40eae Color
Color Codes | |
---|---|
Hex Code | #a40eae |
RGB Code | rgb(164, 14, 174) |
HSL Code | hsl(296, 85%, 37%) |
#a40eae Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(164, 14, 174); }
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(296, 85%, 37%); }
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 #a40eae
RGB Code | Hex Code | Preview |
---|---|---|
rgb(164, 14, 174, 10%) | #a40eae1a | |
rgb(164, 14, 174, 20%) | #a40eae33 | |
rgb(164, 14, 174, 40%) | #a40eae4C | |
rgb(164, 14, 174, 60%) | #a40eae99 | |
rgb(164, 14, 174, 80%) | #a40eaeCC | |
rgb(164, 14, 174, 100%) | #a40eaeFF |
Saturated and desaturated colors of #a40eae
HSL Code | Preview |
---|---|
hsl(296, 10%, 37%) | |
hsl(296, 20%, 37%) | |
hsl(296, 40%, 37%) | |
hsl(296, 60%, 37%) | |
hsl(296, 80%, 37%) | |
hsl(296, 100%, 37%) |
#a40eae Color Usage In CSS
body { color: #a40eae; } p { color: rgb(164, 14, 174); } header { border-bottom:1px solid #a40eae; }