#d9123b Color
Color Codes | |
---|---|
Hex Code | #d9123b |
RGB Code | rgb(217, 18, 59) |
HSL Code | hsl(348, 85%, 46%) |
#d9123b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(217, 18, 59); }
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(348, 85%, 46%); }
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 #d9123b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(217, 18, 59, 10%) | #d9123b1a | |
rgb(217, 18, 59, 20%) | #d9123b33 | |
rgb(217, 18, 59, 40%) | #d9123b4C | |
rgb(217, 18, 59, 60%) | #d9123b99 | |
rgb(217, 18, 59, 80%) | #d9123bCC | |
rgb(217, 18, 59, 100%) | #d9123bFF |
Saturated and desaturated colors of #d9123b
HSL Code | Preview |
---|---|
hsl(348, 10%, 46%) | |
hsl(348, 20%, 46%) | |
hsl(348, 40%, 46%) | |
hsl(348, 60%, 46%) | |
hsl(348, 80%, 46%) | |
hsl(348, 100%, 46%) |
#d9123b Color Usage In CSS
body { color: #d9123b; } p { color: rgb(217, 18, 59); } header { border-bottom:1px solid #d9123b; }