#4a7f35 Color
Color Codes | |
---|---|
Hex Code | #4a7f35 |
RGB Code | rgb(74, 127, 53) |
HSL Code | hsl(103, 41%, 35%) |
#4a7f35 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 127, 53); }
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(103, 41%, 35%); }
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 #4a7f35
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 127, 53, 10%) | #4a7f351a | |
rgb(74, 127, 53, 20%) | #4a7f3533 | |
rgb(74, 127, 53, 40%) | #4a7f354C | |
rgb(74, 127, 53, 60%) | #4a7f3599 | |
rgb(74, 127, 53, 80%) | #4a7f35CC | |
rgb(74, 127, 53, 100%) | #4a7f35FF |
Saturated and desaturated colors of #4a7f35
HSL Code | Preview |
---|---|
hsl(103, 10%, 35%) | |
hsl(103, 20%, 35%) | |
hsl(103, 40%, 35%) | |
hsl(103, 60%, 35%) | |
hsl(103, 80%, 35%) | |
hsl(103, 100%, 35%) |
#4a7f35 Color Usage In CSS
body { color: #4a7f35; } p { color: rgb(74, 127, 53); } header { border-bottom:1px solid #4a7f35; }