#4a7f47 Color
Color Codes | |
---|---|
Hex Code | #4a7f47 |
RGB Code | rgb(74, 127, 71) |
HSL Code | hsl(117, 28%, 39%) |
#4a7f47 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 127, 71); }
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(117, 28%, 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 #4a7f47
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 127, 71, 10%) | #4a7f471a | |
rgb(74, 127, 71, 20%) | #4a7f4733 | |
rgb(74, 127, 71, 40%) | #4a7f474C | |
rgb(74, 127, 71, 60%) | #4a7f4799 | |
rgb(74, 127, 71, 80%) | #4a7f47CC | |
rgb(74, 127, 71, 100%) | #4a7f47FF |
Saturated and desaturated colors of #4a7f47
HSL Code | Preview |
---|---|
hsl(117, 10%, 39%) | |
hsl(117, 20%, 39%) | |
hsl(117, 40%, 39%) | |
hsl(117, 60%, 39%) | |
hsl(117, 80%, 39%) | |
hsl(117, 100%, 39%) |
#4a7f47 Color Usage In CSS
body { color: #4a7f47; } p { color: rgb(74, 127, 71); } header { border-bottom:1px solid #4a7f47; }