#4a7c04 Color
Color Codes | |
---|---|
Hex Code | #4a7c04 |
RGB Code | rgb(74, 124, 04) |
HSL Code | hsl(85, 94%, 25%) |
#4a7c04 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(74, 124, 04); }
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(85, 94%, 25%); }
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 #4a7c04
RGB Code | Hex Code | Preview |
---|---|---|
rgb(74, 124, 04, 10%) | #4a7c041a | |
rgb(74, 124, 04, 20%) | #4a7c0433 | |
rgb(74, 124, 04, 40%) | #4a7c044C | |
rgb(74, 124, 04, 60%) | #4a7c0499 | |
rgb(74, 124, 04, 80%) | #4a7c04CC | |
rgb(74, 124, 04, 100%) | #4a7c04FF |
Saturated and desaturated colors of #4a7c04
HSL Code | Preview |
---|---|
hsl(85, 10%, 25%) | |
hsl(85, 20%, 25%) | |
hsl(85, 40%, 25%) | |
hsl(85, 60%, 25%) | |
hsl(85, 80%, 25%) | |
hsl(85, 100%, 25%) |
#4a7c04 Color Usage In CSS
body { color: #4a7c04; } p { color: rgb(74, 124, 04); } header { border-bottom:1px solid #4a7c04; }