#d8212b Color
Color Codes | |
---|---|
Hex Code | #d8212b |
RGB Code | rgb(216, 33, 43) |
HSL Code | hsl(357, 73%, 49%) |
#d8212b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 33, 43); }
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(357, 73%, 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 #d8212b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 33, 43, 10%) | #d8212b1a | |
rgb(216, 33, 43, 20%) | #d8212b33 | |
rgb(216, 33, 43, 40%) | #d8212b4C | |
rgb(216, 33, 43, 60%) | #d8212b99 | |
rgb(216, 33, 43, 80%) | #d8212bCC | |
rgb(216, 33, 43, 100%) | #d8212bFF |
Saturated and desaturated colors of #d8212b
HSL Code | Preview |
---|---|
hsl(357, 10%, 49%) | |
hsl(357, 20%, 49%) | |
hsl(357, 40%, 49%) | |
hsl(357, 60%, 49%) | |
hsl(357, 80%, 49%) | |
hsl(357, 100%, 49%) |
#d8212b Color Usage In CSS
body { color: #d8212b; } p { color: rgb(216, 33, 43); } header { border-bottom:1px solid #d8212b; }