#7d9157 Color
Color Codes | |
---|---|
Hex Code | #7d9157 |
RGB Code | rgb(125, 145, 87) |
HSL Code | hsl(81, 25%, 45%) |
#7d9157 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(125, 145, 87); }
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(81, 25%, 45%); }
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 #7d9157
RGB Code | Hex Code | Preview |
---|---|---|
rgb(125, 145, 87, 10%) | #7d91571a | |
rgb(125, 145, 87, 20%) | #7d915733 | |
rgb(125, 145, 87, 40%) | #7d91574C | |
rgb(125, 145, 87, 60%) | #7d915799 | |
rgb(125, 145, 87, 80%) | #7d9157CC | |
rgb(125, 145, 87, 100%) | #7d9157FF |
Saturated and desaturated colors of #7d9157
HSL Code | Preview |
---|---|
hsl(81, 10%, 45%) | |
hsl(81, 20%, 45%) | |
hsl(81, 40%, 45%) | |
hsl(81, 60%, 45%) | |
hsl(81, 80%, 45%) | |
hsl(81, 100%, 45%) |
#7d9157 Color Usage In CSS
body { color: #7d9157; } p { color: rgb(125, 145, 87); } header { border-bottom:1px solid #7d9157; }