#4b1f5c Color
Color Codes | |
---|---|
Hex Code | #4b1f5c |
RGB Code | rgb(75, 31, 92) |
HSL Code | hsl(283, 50%, 24%) |
#4b1f5c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(75, 31, 92); }
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(283, 50%, 24%); }
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 #4b1f5c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(75, 31, 92, 10%) | #4b1f5c1a | |
rgb(75, 31, 92, 20%) | #4b1f5c33 | |
rgb(75, 31, 92, 40%) | #4b1f5c4C | |
rgb(75, 31, 92, 60%) | #4b1f5c99 | |
rgb(75, 31, 92, 80%) | #4b1f5cCC | |
rgb(75, 31, 92, 100%) | #4b1f5cFF |
Saturated and desaturated colors of #4b1f5c
HSL Code | Preview |
---|---|
hsl(283, 10%, 24%) | |
hsl(283, 20%, 24%) | |
hsl(283, 40%, 24%) | |
hsl(283, 60%, 24%) | |
hsl(283, 80%, 24%) | |
hsl(283, 100%, 24%) |
#4b1f5c Color Usage In CSS
body { color: #4b1f5c; } p { color: rgb(75, 31, 92); } header { border-bottom:1px solid #4b1f5c; }