#3a6238 Color
Color Codes | |
---|---|
Hex Code | #3a6238 |
RGB Code | rgb(58, 98, 56) |
HSL Code | hsl(117, 27%, 30%) |
#3a6238 Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(58, 98, 56); }
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(117, 27%, 30%); }
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 #3a6238
RGB Code | Hex Code | Preview |
---|---|---|
rgb(58, 98, 56, 10%) | #3a62381a | |
rgb(58, 98, 56, 20%) | #3a623833 | |
rgb(58, 98, 56, 40%) | #3a62384C | |
rgb(58, 98, 56, 60%) | #3a623899 | |
rgb(58, 98, 56, 80%) | #3a6238CC | |
rgb(58, 98, 56, 100%) | #3a6238FF |
Saturated and desaturated colors of #3a6238
HSL Code | Preview |
---|---|
hsl(117, 10%, 30%) | |
hsl(117, 20%, 30%) | |
hsl(117, 40%, 30%) | |
hsl(117, 60%, 30%) | |
hsl(117, 80%, 30%) | |
hsl(117, 100%, 30%) |
#3a6238 Color Usage In CSS
body { color: #3a6238; } p { color: rgb(58, 98, 56); } header { border-bottom:1px solid #3a6238; }