#5f47bf Color
Color Codes | |
---|---|
Hex Code | #5f47bf |
RGB Code | rgb(95, 71, 191) |
HSL Code | hsl(252, 48%, 51%) |
#5f47bf Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(95, 71, 191); }
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(252, 48%, 51%); }
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 #5f47bf
RGB Code | Hex Code | Preview |
---|---|---|
rgb(95, 71, 191, 10%) | #5f47bf1a | |
rgb(95, 71, 191, 20%) | #5f47bf33 | |
rgb(95, 71, 191, 40%) | #5f47bf4C | |
rgb(95, 71, 191, 60%) | #5f47bf99 | |
rgb(95, 71, 191, 80%) | #5f47bfCC | |
rgb(95, 71, 191, 100%) | #5f47bfFF |
Saturated and desaturated colors of #5f47bf
HSL Code | Preview |
---|---|
hsl(252, 10%, 51%) | |
hsl(252, 20%, 51%) | |
hsl(252, 40%, 51%) | |
hsl(252, 60%, 51%) | |
hsl(252, 80%, 51%) | |
hsl(252, 100%, 51%) |
#5f47bf Color Usage In CSS
body { color: #5f47bf; } p { color: rgb(95, 71, 191); } header { border-bottom:1px solid #5f47bf; }