#7b7b51 Color
Color Codes | |
---|---|
Hex Code | #7b7b51 |
RGB Code | rgb(123, 123, 81) |
HSL Code | hsl(60, 21%, 40%) |
#7b7b51 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(123, 123, 81); }
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(60, 21%, 40%); }
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 #7b7b51
RGB Code | Hex Code | Preview |
---|---|---|
rgb(123, 123, 81, 10%) | #7b7b511a | |
rgb(123, 123, 81, 20%) | #7b7b5133 | |
rgb(123, 123, 81, 40%) | #7b7b514C | |
rgb(123, 123, 81, 60%) | #7b7b5199 | |
rgb(123, 123, 81, 80%) | #7b7b51CC | |
rgb(123, 123, 81, 100%) | #7b7b51FF |
Saturated and desaturated colors of #7b7b51
HSL Code | Preview |
---|---|
hsl(60, 10%, 40%) | |
hsl(60, 20%, 40%) | |
hsl(60, 40%, 40%) | |
hsl(60, 60%, 40%) | |
hsl(60, 80%, 40%) | |
hsl(60, 100%, 40%) |
#7b7b51 Color Usage In CSS
body { color: #7b7b51; } p { color: rgb(123, 123, 81); } header { border-bottom:1px solid #7b7b51; }