#520242 Color
Color Codes | |
---|---|
Hex Code | #520242 |
RGB Code | rgb(82, 02, 66) |
HSL Code | hsl(312, 95%, 16%) |
#520242 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(82, 02, 66); }
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(312, 95%, 16%); }
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 #520242
RGB Code | Hex Code | Preview |
---|---|---|
rgb(82, 02, 66, 10%) | #5202421a | |
rgb(82, 02, 66, 20%) | #52024233 | |
rgb(82, 02, 66, 40%) | #5202424C | |
rgb(82, 02, 66, 60%) | #52024299 | |
rgb(82, 02, 66, 80%) | #520242CC | |
rgb(82, 02, 66, 100%) | #520242FF |
Saturated and desaturated colors of #520242
HSL Code | Preview |
---|---|
hsl(312, 10%, 16%) | |
hsl(312, 20%, 16%) | |
hsl(312, 40%, 16%) | |
hsl(312, 60%, 16%) | |
hsl(312, 80%, 16%) | |
hsl(312, 100%, 16%) |
#520242 Color Usage In CSS
body { color: #520242; } p { color: rgb(82, 02, 66); } header { border-bottom:1px solid #520242; }