#e2161c Color
Color Codes | |
---|---|
Hex Code | #e2161c |
RGB Code | rgb(226, 22, 28) |
HSL Code | hsl(358, 82%, 49%) |
#e2161c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(226, 22, 28); }
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(358, 82%, 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 #e2161c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(226, 22, 28, 10%) | #e2161c1a | |
rgb(226, 22, 28, 20%) | #e2161c33 | |
rgb(226, 22, 28, 40%) | #e2161c4C | |
rgb(226, 22, 28, 60%) | #e2161c99 | |
rgb(226, 22, 28, 80%) | #e2161cCC | |
rgb(226, 22, 28, 100%) | #e2161cFF |
Saturated and desaturated colors of #e2161c
HSL Code | Preview |
---|---|
hsl(358, 10%, 49%) | |
hsl(358, 20%, 49%) | |
hsl(358, 40%, 49%) | |
hsl(358, 60%, 49%) | |
hsl(358, 80%, 49%) | |
hsl(358, 100%, 49%) |
#e2161c Color Usage In CSS
body { color: #e2161c; } p { color: rgb(226, 22, 28); } header { border-bottom:1px solid #e2161c; }