#5b2d3b Color
Color Codes | |
---|---|
Hex Code | #5b2d3b |
RGB Code | rgb(91, 45, 59) |
HSL Code | hsl(342, 34%, 27%) |
#5b2d3b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(91, 45, 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(342, 34%, 27%); }
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 #5b2d3b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(91, 45, 59, 10%) | #5b2d3b1a | |
rgb(91, 45, 59, 20%) | #5b2d3b33 | |
rgb(91, 45, 59, 40%) | #5b2d3b4C | |
rgb(91, 45, 59, 60%) | #5b2d3b99 | |
rgb(91, 45, 59, 80%) | #5b2d3bCC | |
rgb(91, 45, 59, 100%) | #5b2d3bFF |
Saturated and desaturated colors of #5b2d3b
HSL Code | Preview |
---|---|
hsl(342, 10%, 27%) | |
hsl(342, 20%, 27%) | |
hsl(342, 40%, 27%) | |
hsl(342, 60%, 27%) | |
hsl(342, 80%, 27%) | |
hsl(342, 100%, 27%) |
#5b2d3b Color Usage In CSS
body { color: #5b2d3b; } p { color: rgb(91, 45, 59); } header { border-bottom:1px solid #5b2d3b; }