#def040
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 | #def040 | |
| RGB | rgb(222 240 64) | |
| HSL | hsl(66.14 85.44% 59.61%) | |
| OKLCH | oklch(0.91 0.19 115.39) | |
| CMYK | cmyk(7.5% 0% 73.33% 5.88%) | |
| Android | #ffdef040 |
Names & lists
Web-safe: No
Tailwind: No
Contrast
Aa
1.26:1
Fail AA normal text
Fail AA large text
On white #ffffff
Aa
16.64: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="#def040"
Gradient stop
<stop stop-color="#def040"/>
CSS variable + fill
:root { --c: #def040; }
svg .icon { fill: var(--c); }
CSS
color / background
color: #def040; background-color: #def040; bg-[#def040]