#de1b1b Color
Color Codes | |
---|---|
Hex Code | #de1b1b |
RGB Code | rgb(222, 27, 27) |
HSL Code | hsl(0, 78%, 49%) |
#de1b1b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(222, 27, 27); }
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(0, 78%, 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 #de1b1b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(222, 27, 27, 10%) | #de1b1b1a | |
rgb(222, 27, 27, 20%) | #de1b1b33 | |
rgb(222, 27, 27, 40%) | #de1b1b4C | |
rgb(222, 27, 27, 60%) | #de1b1b99 | |
rgb(222, 27, 27, 80%) | #de1b1bCC | |
rgb(222, 27, 27, 100%) | #de1b1bFF |
Saturated and desaturated colors of #de1b1b
HSL Code | Preview |
---|---|
hsl(0, 10%, 49%) | |
hsl(0, 20%, 49%) | |
hsl(0, 40%, 49%) | |
hsl(0, 60%, 49%) | |
hsl(0, 80%, 49%) | |
hsl(0, 100%, 49%) |
#de1b1b Color Usage In CSS
body { color: #de1b1b; } p { color: rgb(222, 27, 27); } header { border-bottom:1px solid #de1b1b; }