#a151a0 Color
Color Codes | |
---|---|
Hex Code | #a151a0 |
RGB Code | rgb(161, 81, 160) |
HSL Code | hsl(301, 33%, 47%) |
#a151a0 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(161, 81, 160); }
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(301, 33%, 47%); }
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 #a151a0
RGB Code | Hex Code | Preview |
---|---|---|
rgb(161, 81, 160, 10%) | #a151a01a | |
rgb(161, 81, 160, 20%) | #a151a033 | |
rgb(161, 81, 160, 40%) | #a151a04C | |
rgb(161, 81, 160, 60%) | #a151a099 | |
rgb(161, 81, 160, 80%) | #a151a0CC | |
rgb(161, 81, 160, 100%) | #a151a0FF |
Saturated and desaturated colors of #a151a0
HSL Code | Preview |
---|---|
hsl(301, 10%, 47%) | |
hsl(301, 20%, 47%) | |
hsl(301, 40%, 47%) | |
hsl(301, 60%, 47%) | |
hsl(301, 80%, 47%) | |
hsl(301, 100%, 47%) |
#a151a0 Color Usage In CSS
body { color: #a151a0; } p { color: rgb(161, 81, 160); } header { border-bottom:1px solid #a151a0; }