#2d6620
Codes, contrast, shades, harmonies and SVG snippets for this color.
- Codes
- Names & lists
- Contrast
- Shades & tints
- Harmonies
- Color-blindness
- SVG snippets
- CSS
- Related colors
Codes
| Format | Value | |
|---|---|---|
| HEX | #2d6620 | |
| RGB | rgb(45 102 32) | |
| HSL | hsl(108.86 52.24% 26.27%) | |
| OKLCH | oklch(0.46 0.12 140.15) | |
| CMYK | cmyk(55.88% 0% 68.63% 60%) | |
| Android | #ff2d6620 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
6.92:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
3.03:1
Fail AA normal text
Pass AA large text
On black #000000 · Best text #ffffff
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#2d6620"
Gradient stop
<stop stop-color="#2d6620"/>
CSS variable + fill
:root { --c: #2d6620; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #2d6620; background-color: #2d6620; bg-[#2d6620]