#d8130d Color
Color Codes | |
---|---|
Hex Code | #d8130d |
RGB Code | rgb(216, 19, 13) |
HSL Code | hsl(2, 89%, 45%) |
#d8130d Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(216, 19, 13); }
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(2, 89%, 45%); }
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 #d8130d
RGB Code | Hex Code | Preview |
---|---|---|
rgb(216, 19, 13, 10%) | #d8130d1a | |
rgb(216, 19, 13, 20%) | #d8130d33 | |
rgb(216, 19, 13, 40%) | #d8130d4C | |
rgb(216, 19, 13, 60%) | #d8130d99 | |
rgb(216, 19, 13, 80%) | #d8130dCC | |
rgb(216, 19, 13, 100%) | #d8130dFF |
Saturated and desaturated colors of #d8130d
HSL Code | Preview |
---|---|
hsl(2, 10%, 45%) | |
hsl(2, 20%, 45%) | |
hsl(2, 40%, 45%) | |
hsl(2, 60%, 45%) | |
hsl(2, 80%, 45%) | |
hsl(2, 100%, 45%) |
#d8130d Color Usage In CSS
body { color: #d8130d; } p { color: rgb(216, 19, 13); } header { border-bottom:1px solid #d8130d; }