#336f1b Color
Color Codes | |
---|---|
Hex Code | #336f1b |
RGB Code | rgb(51, 111, 27) |
HSL Code | hsl(103, 61%, 27%) |
#336f1b Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(51, 111, 27); }
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, 61%, 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 #336f1b
RGB Code | Hex Code | Preview |
---|---|---|
rgb(51, 111, 27, 10%) | #336f1b1a | |
rgb(51, 111, 27, 20%) | #336f1b33 | |
rgb(51, 111, 27, 40%) | #336f1b4C | |
rgb(51, 111, 27, 60%) | #336f1b99 | |
rgb(51, 111, 27, 80%) | #336f1bCC | |
rgb(51, 111, 27, 100%) | #336f1bFF |
Saturated and desaturated colors of #336f1b
HSL Code | Preview |
---|---|
hsl(103, 10%, 27%) | |
hsl(103, 20%, 27%) | |
hsl(103, 40%, 27%) | |
hsl(103, 60%, 27%) | |
hsl(103, 80%, 27%) | |
hsl(103, 100%, 27%) |
#336f1b Color Usage In CSS
body { color: #336f1b; } p { color: rgb(51, 111, 27); } header { border-bottom:1px solid #336f1b; }