#5b246a Color
Color Codes | |
---|---|
Hex Code | #5b246a |
RGB Code | rgb(91, 36, 106) |
HSL Code | hsl(287, 49%, 28%) |
#5b246a Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 36, 106); }
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(287, 49%, 28%); }
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 #5b246a
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 36, 106, 10%) | #5b246a1a | |
rgb(91, 36, 106, 20%) | #5b246a33 | |
rgb(91, 36, 106, 40%) | #5b246a4C | |
rgb(91, 36, 106, 60%) | #5b246a99 | |
rgb(91, 36, 106, 80%) | #5b246aCC | |
rgb(91, 36, 106, 100%) | #5b246aFF |
Saturated and desaturated colors of #5b246a
HSL Code | Preview |
---|---|
hsl(287, 10%, 28%) | |
hsl(287, 20%, 28%) | |
hsl(287, 40%, 28%) | |
hsl(287, 60%, 28%) | |
hsl(287, 80%, 28%) | |
hsl(287, 100%, 28%) |
#5b246a Color Usage In CSS
body { color: #5b246a; } p { color: rgb(91, 36, 106); } header { border-bottom:1px solid #5b246a; }