#5b1b1e Color
Color Codes | |
---|---|
Hex Code | #5b1b1e |
RGB Code | rgb(91, 27, 30) |
HSL Code | hsl(357, 54%, 23%) |
#5b1b1e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 27, 30); }
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(357, 54%, 23%); }
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 #5b1b1e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 27, 30, 10%) | #5b1b1e1a | |
rgb(91, 27, 30, 20%) | #5b1b1e33 | |
rgb(91, 27, 30, 40%) | #5b1b1e4C | |
rgb(91, 27, 30, 60%) | #5b1b1e99 | |
rgb(91, 27, 30, 80%) | #5b1b1eCC | |
rgb(91, 27, 30, 100%) | #5b1b1eFF |
Saturated and desaturated colors of #5b1b1e
HSL Code | Preview |
---|---|
hsl(357, 10%, 23%) | |
hsl(357, 20%, 23%) | |
hsl(357, 40%, 23%) | |
hsl(357, 60%, 23%) | |
hsl(357, 80%, 23%) | |
hsl(357, 100%, 23%) |
#5b1b1e Color Usage In CSS
body { color: #5b1b1e; } p { color: rgb(91, 27, 30); } header { border-bottom:1px solid #5b1b1e; }