#a134e2 Color
Color Codes | |
---|---|
Hex Code | #a134e2 |
RGB Code | rgb(161, 52, 226) |
HSL Code | hsl(278, 75%, 55%) |
#a134e2 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(161, 52, 226); }
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(278, 75%, 55%); }
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 #a134e2
RGB Code | Hex Code | Preview |
---|---|---|
rgb(161, 52, 226, 10%) | #a134e21a | |
rgb(161, 52, 226, 20%) | #a134e233 | |
rgb(161, 52, 226, 40%) | #a134e24C | |
rgb(161, 52, 226, 60%) | #a134e299 | |
rgb(161, 52, 226, 80%) | #a134e2CC | |
rgb(161, 52, 226, 100%) | #a134e2FF |
Saturated and desaturated colors of #a134e2
HSL Code | Preview |
---|---|
hsl(278, 10%, 55%) | |
hsl(278, 20%, 55%) | |
hsl(278, 40%, 55%) | |
hsl(278, 60%, 55%) | |
hsl(278, 80%, 55%) | |
hsl(278, 100%, 55%) |
#a134e2 Color Usage In CSS
body { color: #a134e2; } p { color: rgb(161, 52, 226); } header { border-bottom:1px solid #a134e2; }