#c21f11 Color
Color Codes | |
---|---|
Hex Code | #c21f11 |
RGB Code | rgb(194, 31, 17) |
HSL Code | hsl(5, 84%, 41%) |
#c21f11 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(194, 31, 17); }
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(5, 84%, 41%); }
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 #c21f11
RGB Code | Hex Code | Preview |
---|---|---|
rgb(194, 31, 17, 10%) | #c21f111a | |
rgb(194, 31, 17, 20%) | #c21f1133 | |
rgb(194, 31, 17, 40%) | #c21f114C | |
rgb(194, 31, 17, 60%) | #c21f1199 | |
rgb(194, 31, 17, 80%) | #c21f11CC | |
rgb(194, 31, 17, 100%) | #c21f11FF |
Saturated and desaturated colors of #c21f11
HSL Code | Preview |
---|---|
hsl(5, 10%, 41%) | |
hsl(5, 20%, 41%) | |
hsl(5, 40%, 41%) | |
hsl(5, 60%, 41%) | |
hsl(5, 80%, 41%) | |
hsl(5, 100%, 41%) |
#c21f11 Color Usage In CSS
body { color: #c21f11; } p { color: rgb(194, 31, 17); } header { border-bottom:1px solid #c21f11; }