#b70f1f Color
Color Codes | |
---|---|
Hex Code | #b70f1f |
RGB Code | rgb(183, 15, 31) |
HSL Code | hsl(354, 85%, 39%) |
#b70f1f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(183, 15, 31); }
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(354, 85%, 39%); }
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 #b70f1f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(183, 15, 31, 10%) | #b70f1f1a | |
rgb(183, 15, 31, 20%) | #b70f1f33 | |
rgb(183, 15, 31, 40%) | #b70f1f4C | |
rgb(183, 15, 31, 60%) | #b70f1f99 | |
rgb(183, 15, 31, 80%) | #b70f1fCC | |
rgb(183, 15, 31, 100%) | #b70f1fFF |
Saturated and desaturated colors of #b70f1f
HSL Code | Preview |
---|---|
hsl(354, 10%, 39%) | |
hsl(354, 20%, 39%) | |
hsl(354, 40%, 39%) | |
hsl(354, 60%, 39%) | |
hsl(354, 80%, 39%) | |
hsl(354, 100%, 39%) |
#b70f1f Color Usage In CSS
body { color: #b70f1f; } p { color: rgb(183, 15, 31); } header { border-bottom:1px solid #b70f1f; }