#2a672e Color
Color Codes | |
---|---|
Hex Code | #2a672e |
RGB Code | rgb(42, 103, 46) |
HSL Code | hsl(124, 42%, 28%) |
#2a672e Color Syntax
rgb()
rgb(Red, Green, Blue); rgba(Red, Green, Blue, Alpha); main { background-color: rgb(42, 103, 46); }
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(124, 42%, 28%); }
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 #2a672e
RGB Code | Hex Code | Preview |
---|---|---|
rgb(42, 103, 46, 10%) | #2a672e1a | |
rgb(42, 103, 46, 20%) | #2a672e33 | |
rgb(42, 103, 46, 40%) | #2a672e4C | |
rgb(42, 103, 46, 60%) | #2a672e99 | |
rgb(42, 103, 46, 80%) | #2a672eCC | |
rgb(42, 103, 46, 100%) | #2a672eFF |
Saturated and desaturated colors of #2a672e
HSL Code | Preview |
---|---|
hsl(124, 10%, 28%) | |
hsl(124, 20%, 28%) | |
hsl(124, 40%, 28%) | |
hsl(124, 60%, 28%) | |
hsl(124, 80%, 28%) | |
hsl(124, 100%, 28%) |
#2a672e Color Usage In CSS
body { color: #2a672e; } p { color: rgb(42, 103, 46); } header { border-bottom:1px solid #2a672e; }