#42c852
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 | #42c852 | |
| RGB | rgb(66 200 82) | |
| HSL | hsl(127.16 54.92% 52.16%) | |
| OKLCH | oklch(0.74 0.2 145.11) | |
| CMYK | cmyk(67% 0% 59% 21.57%) | |
| Android | #ff42c852 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.18:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
9.61:1
Pass AA normal text
Pass AA large text
On black #000000 · Best text #000000
Shades & tints
OKLCH lightness, mixed toward white then black.
Harmonies
Complementary
Analogous
Triadic
Color-blindness
Normal
Protanopia
Deuteranopia
Tritanopia
SVG snippets
fill
fill="#42c852"
Gradient stop
<stop stop-color="#42c852"/>
CSS variable + fill
:root { --c: #42c852; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #42c852; background-color: #42c852; bg-[#42c852]