#def40c
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 244, 12
HSL
66°, 91%, 50%
CMYK
9, 0, 95, 4
Luminance
0.8026
Every format
| HEX | #def40c |
| RGB | rgb(222, 244, 12) |
| HSL | hsl(66, 91%, 50%) |
| CMYK | cmyk(9%, 0%, 95%, 4%) |
| LAB | lab(91.8 -29.8 88.5) |
| LCH | lch(91.8 93.4 108.6) |
| OKLCH | oklch(0.919 0.209 116.2) |
Copy-ready code
/* CSS */
color: #def40c;
background-color: #def40c;
/* Tailwind (arbitrary) */
class="text-[#def40c] bg-[#def40c]"
/* SCSS */
$brand: #def40c;
/* SwiftUI */
Color(red: 0.871, green: 0.957, blue: 0.047)
/* Android */
Color.parseColor("#def40c")Accessibility — WCAG contrast
Aa
#def40c on white: 1.23:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def40c on black: 17.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green95.7%
Blue4.7%
CMYK percentages
Cyan9.0%
Magenta0.0%
Yellow95.1%
Key (black)4.3%
Color previews
#def40c text on a black background
contrast 17.05:1
Card sample
#def40c text on a white background
contrast 1.23:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def40c;
Background color
Panel with #def40c background
background-color: #def40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 244, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 244, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def40c; background: linear-gradient(135deg, #def40c, #43F40C);