#3b6c1f Color
Color Codes | |
---|---|
Hex Code | #3b6c1f |
RGB Code | rgb(59, 108, 31) |
HSL Code | hsl(98, 55%, 27%) |
#3b6c1f Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(59, 108, 31); }
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(98, 55%, 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 #3b6c1f
RGB Code | Hex Code | Preview |
---|---|---|
rgb(59, 108, 31, 10%) | #3b6c1f1a | |
rgb(59, 108, 31, 20%) | #3b6c1f33 | |
rgb(59, 108, 31, 40%) | #3b6c1f4C | |
rgb(59, 108, 31, 60%) | #3b6c1f99 | |
rgb(59, 108, 31, 80%) | #3b6c1fCC | |
rgb(59, 108, 31, 100%) | #3b6c1fFF |
Saturated and desaturated colors of #3b6c1f
HSL Code | Preview |
---|---|
hsl(98, 10%, 27%) | |
hsl(98, 20%, 27%) | |
hsl(98, 40%, 27%) | |
hsl(98, 60%, 27%) | |
hsl(98, 80%, 27%) | |
hsl(98, 100%, 27%) |
#3b6c1f Color Usage In CSS
body { color: #3b6c1f; } p { color: rgb(59, 108, 31); } header { border-bottom:1px solid #3b6c1f; }