#870b2e Color
Color Codes | |
---|---|
Hex Code | #870b2e |
RGB Code | rgb(135, 11, 46) |
HSL Code | hsl(343, 85%, 29%) |
#870b2e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(135, 11, 46); }
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(343, 85%, 29%); }
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 #870b2e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(135, 11, 46, 10%) | #870b2e1a | |
rgb(135, 11, 46, 20%) | #870b2e33 | |
rgb(135, 11, 46, 40%) | #870b2e4C | |
rgb(135, 11, 46, 60%) | #870b2e99 | |
rgb(135, 11, 46, 80%) | #870b2eCC | |
rgb(135, 11, 46, 100%) | #870b2eFF |
Saturated and desaturated colors of #870b2e
HSL Code | Preview |
---|---|
hsl(343, 10%, 29%) | |
hsl(343, 20%, 29%) | |
hsl(343, 40%, 29%) | |
hsl(343, 60%, 29%) | |
hsl(343, 80%, 29%) | |
hsl(343, 100%, 29%) |
#870b2e Color Usage In CSS
body { color: #870b2e; } p { color: rgb(135, 11, 46); } header { border-bottom:1px solid #870b2e; }