#42811e
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 | #42811e | |
| RGB | rgb(66 129 30) | |
| HSL | hsl(98.18 62.26% 31.18%) | |
| OKLCH | oklch(0.54 0.15 136.7) | |
| CMYK | cmyk(48.84% 0% 76.74% 49.41%) | |
| Android | #ff42811e |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
4.78:1
Pass AA normal text
Pass AA large text
On white #ffffff
Aa
4.39: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="#42811e"
Gradient stop
<stop stop-color="#42811e"/>
CSS variable + fill
:root { --c: #42811e; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #42811e; background-color: #42811e; bg-[#42811e]