#5f4bea Color
Color Codes | |
---|---|
Hex Code | #5f4bea |
RGB Code | rgb(95, 75, 234) |
HSL Code | hsl(248, 79%, 61%) |
#5f4bea Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 75, 234); }
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(248, 79%, 61%); }
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 #5f4bea
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 75, 234, 10%) | #5f4bea1a | |
rgb(95, 75, 234, 20%) | #5f4bea33 | |
rgb(95, 75, 234, 40%) | #5f4bea4C | |
rgb(95, 75, 234, 60%) | #5f4bea99 | |
rgb(95, 75, 234, 80%) | #5f4beaCC | |
rgb(95, 75, 234, 100%) | #5f4beaFF |
Saturated and desaturated colors of #5f4bea
HSL Code | Preview |
---|---|
hsl(248, 10%, 61%) | |
hsl(248, 20%, 61%) | |
hsl(248, 40%, 61%) | |
hsl(248, 60%, 61%) | |
hsl(248, 80%, 61%) | |
hsl(248, 100%, 61%) |
#5f4bea Color Usage In CSS
body { color: #5f4bea; } p { color: rgb(95, 75, 234); } header { border-bottom:1px solid #5f4bea; }