#5b3eba Color
Color Codes | |
---|---|
Hex Code | #5b3eba |
RGB Code | rgb(91, 62, 186) |
HSL Code | hsl(254, 50%, 49%) |
#5b3eba Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 62, 186); }
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(254, 50%, 49%); }
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 #5b3eba
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 62, 186, 10%) | #5b3eba1a | |
rgb(91, 62, 186, 20%) | #5b3eba33 | |
rgb(91, 62, 186, 40%) | #5b3eba4C | |
rgb(91, 62, 186, 60%) | #5b3eba99 | |
rgb(91, 62, 186, 80%) | #5b3ebaCC | |
rgb(91, 62, 186, 100%) | #5b3ebaFF |
Saturated and desaturated colors of #5b3eba
HSL Code | Preview |
---|---|
hsl(254, 10%, 49%) | |
hsl(254, 20%, 49%) | |
hsl(254, 40%, 49%) | |
hsl(254, 60%, 49%) | |
hsl(254, 80%, 49%) | |
hsl(254, 100%, 49%) |
#5b3eba Color Usage In CSS
body { color: #5b3eba; } p { color: rgb(91, 62, 186); } header { border-bottom:1px solid #5b3eba; }