#787c0c Color
Color Codes | |
---|---|
Hex Code | #787c0c |
RGB Code | rgb(120, 124, 12) |
HSL Code | hsl(62, 82%, 27%) |
#787c0c Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(120, 124, 12); }
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(62, 82%, 27%); }
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 #787c0c
RGB Code | Hex Code | Preview |
---|---|---|
rgb(120, 124, 12, 10%) | #787c0c1a | |
rgb(120, 124, 12, 20%) | #787c0c33 | |
rgb(120, 124, 12, 40%) | #787c0c4C | |
rgb(120, 124, 12, 60%) | #787c0c99 | |
rgb(120, 124, 12, 80%) | #787c0cCC | |
rgb(120, 124, 12, 100%) | #787c0cFF |
Saturated and desaturated colors of #787c0c
HSL Code | Preview |
---|---|
hsl(62, 10%, 27%) | |
hsl(62, 20%, 27%) | |
hsl(62, 40%, 27%) | |
hsl(62, 60%, 27%) | |
hsl(62, 80%, 27%) | |
hsl(62, 100%, 27%) |
#787c0c Color Usage In CSS
body { color: #787c0c; } p { color: rgb(120, 124, 12); } header { border-bottom:1px solid #787c0c; }