#a5839f Color
Color Codes | |
---|---|
Hex Code | #a5839f |
RGB Code | rgb(165, 131, 159) |
HSL Code | hsl(311, 16%, 58%) |
#a5839f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(165, 131, 159); }
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, 16%, 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 #a5839f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(165, 131, 159, 10%) | #a5839f1a | |
rgb(165, 131, 159, 20%) | #a5839f33 | |
rgb(165, 131, 159, 40%) | #a5839f4C | |
rgb(165, 131, 159, 60%) | #a5839f99 | |
rgb(165, 131, 159, 80%) | #a5839fCC | |
rgb(165, 131, 159, 100%) | #a5839fFF |
Saturated and desaturated colors of #a5839f
HSL Code | Preview |
---|---|
hsl(311, 10%, 58%) | |
hsl(311, 20%, 58%) | |
hsl(311, 40%, 58%) | |
hsl(311, 60%, 58%) | |
hsl(311, 80%, 58%) | |
hsl(311, 100%, 58%) |
#a5839f Color Usage In CSS
body { color: #a5839f; } p { color: rgb(165, 131, 159); } header { border-bottom:1px solid #a5839f; }