#a1819b Color
Color Codes | |
---|---|
Hex Code | #a1819b |
RGB Code | rgb(161, 129, 155) |
HSL Code | hsl(311, 15%, 57%) |
#a1819b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(161, 129, 155); }
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(311, 15%, 57%); }
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 #a1819b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(161, 129, 155, 10%) | #a1819b1a | |
rgb(161, 129, 155, 20%) | #a1819b33 | |
rgb(161, 129, 155, 40%) | #a1819b4C | |
rgb(161, 129, 155, 60%) | #a1819b99 | |
rgb(161, 129, 155, 80%) | #a1819bCC | |
rgb(161, 129, 155, 100%) | #a1819bFF |
Saturated and desaturated colors of #a1819b
HSL Code | Preview |
---|---|
hsl(311, 10%, 57%) | |
hsl(311, 20%, 57%) | |
hsl(311, 40%, 57%) | |
hsl(311, 60%, 57%) | |
hsl(311, 80%, 57%) | |
hsl(311, 100%, 57%) |
#a1819b Color Usage In CSS
body { color: #a1819b; } p { color: rgb(161, 129, 155); } header { border-bottom:1px solid #a1819b; }