#40c81a
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 | #40c81a | |
| RGB | rgb(64 200 26) | |
| HSL | hsl(106.9 76.99% 44.31%) | |
| OKLCH | oklch(0.73 0.23 140.46) | |
| CMYK | cmyk(68% 0% 87% 21.57%) | |
| Android | #ff40c81a |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
2.21:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
9.49: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="#40c81a"
Gradient stop
<stop stop-color="#40c81a"/>
CSS variable + fill
:root { --c: #40c81a; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #40c81a; background-color: #40c81a; bg-[#40c81a]