#5d1688 Color
Color Codes | |
---|---|
Hex Code | #5d1688 |
RGB Code | rgb(93, 22, 136) |
HSL Code | hsl(277, 72%, 31%) |
#5d1688 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(93, 22, 136); }
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(277, 72%, 31%); }
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 #5d1688
RGB Code | Hex Code | Preview |
---|---|---|
rgb(93, 22, 136, 10%) | #5d16881a | |
rgb(93, 22, 136, 20%) | #5d168833 | |
rgb(93, 22, 136, 40%) | #5d16884C | |
rgb(93, 22, 136, 60%) | #5d168899 | |
rgb(93, 22, 136, 80%) | #5d1688CC | |
rgb(93, 22, 136, 100%) | #5d1688FF |
Saturated and desaturated colors of #5d1688
HSL Code | Preview |
---|---|
hsl(277, 10%, 31%) | |
hsl(277, 20%, 31%) | |
hsl(277, 40%, 31%) | |
hsl(277, 60%, 31%) | |
hsl(277, 80%, 31%) | |
hsl(277, 100%, 31%) |
#5d1688 Color Usage In CSS
body { color: #5d1688; } p { color: rgb(93, 22, 136); } header { border-bottom:1px solid #5d1688; }