#4f517c Color
Color Codes | |
---|---|
Hex Code | #4f517c |
RGB Code | rgb(79, 81, 124) |
HSL Code | hsl(237, 22%, 40%) |
#4f517c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(79, 81, 124); }
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(237, 22%, 40%); }
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 #4f517c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(79, 81, 124, 10%) | #4f517c1a | |
rgb(79, 81, 124, 20%) | #4f517c33 | |
rgb(79, 81, 124, 40%) | #4f517c4C | |
rgb(79, 81, 124, 60%) | #4f517c99 | |
rgb(79, 81, 124, 80%) | #4f517cCC | |
rgb(79, 81, 124, 100%) | #4f517cFF |
Saturated and desaturated colors of #4f517c
HSL Code | Preview |
---|---|
hsl(237, 10%, 40%) | |
hsl(237, 20%, 40%) | |
hsl(237, 40%, 40%) | |
hsl(237, 60%, 40%) | |
hsl(237, 80%, 40%) | |
hsl(237, 100%, 40%) |
#4f517c Color Usage In CSS
body { color: #4f517c; } p { color: rgb(79, 81, 124); } header { border-bottom:1px solid #4f517c; }