#4b8a61 Color
Color Codes | |
---|---|
Hex Code | #4b8a61 |
RGB Code | rgb(75, 138, 97) |
HSL Code | hsl(141, 30%, 42%) |
#4b8a61 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(75, 138, 97); }
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(141, 30%, 42%); }
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 #4b8a61
RGB Code | Hex Code | Preview |
---|---|---|
rgb(75, 138, 97, 10%) | #4b8a611a | |
rgb(75, 138, 97, 20%) | #4b8a6133 | |
rgb(75, 138, 97, 40%) | #4b8a614C | |
rgb(75, 138, 97, 60%) | #4b8a6199 | |
rgb(75, 138, 97, 80%) | #4b8a61CC | |
rgb(75, 138, 97, 100%) | #4b8a61FF |
Saturated and desaturated colors of #4b8a61
HSL Code | Preview |
---|---|
hsl(141, 10%, 42%) | |
hsl(141, 20%, 42%) | |
hsl(141, 40%, 42%) | |
hsl(141, 60%, 42%) | |
hsl(141, 80%, 42%) | |
hsl(141, 100%, 42%) |
#4b8a61 Color Usage In CSS
body { color: #4b8a61; } p { color: rgb(75, 138, 97); } header { border-bottom:1px solid #4b8a61; }