#9d1126 Color
Color Codes | |
---|---|
Hex Code | #9d1126 |
RGB Code | rgb(157, 17, 38) |
HSL Code | hsl(351, 80%, 34%) |
#9d1126 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(157, 17, 38); }
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(351, 80%, 34%); }
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 #9d1126
RGB Code | Hex Code | Preview |
---|---|---|
rgb(157, 17, 38, 10%) | #9d11261a | |
rgb(157, 17, 38, 20%) | #9d112633 | |
rgb(157, 17, 38, 40%) | #9d11264C | |
rgb(157, 17, 38, 60%) | #9d112699 | |
rgb(157, 17, 38, 80%) | #9d1126CC | |
rgb(157, 17, 38, 100%) | #9d1126FF |
Saturated and desaturated colors of #9d1126
HSL Code | Preview |
---|---|
hsl(351, 10%, 34%) | |
hsl(351, 20%, 34%) | |
hsl(351, 40%, 34%) | |
hsl(351, 60%, 34%) | |
hsl(351, 80%, 34%) | |
hsl(351, 100%, 34%) |
#9d1126 Color Usage In CSS
body { color: #9d1126; } p { color: rgb(157, 17, 38); } header { border-bottom:1px solid #9d1126; }