#def02c
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 240, 44
HSL
66°, 87%, 56%
CMYK
8, 0, 82, 6
Luminance
0.7803
Every format
| HEX | #def02c |
| RGB | rgb(222, 240, 44) |
| HSL | hsl(66, 87%, 56%) |
| CMYK | cmyk(8%, 0%, 82%, 6%) |
| LAB | lab(90.8 -27.3 82.7) |
| LCH | lch(90.8 87.1 108.3) |
| OKLCH | oklch(0.911 0.198 115.3) |
Copy-ready code
/* CSS */
color: #def02c;
background-color: #def02c;
/* Tailwind (arbitrary) */
class="text-[#def02c] bg-[#def02c]"
/* SCSS */
$brand: #def02c;
/* SwiftUI */
Color(red: 0.871, green: 0.941, blue: 0.173)
/* Android */
Color.parseColor("#def02c")Accessibility — WCAG contrast
Aa
#def02c on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def02c on black: 16.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green94.1%
Blue17.3%
CMYK percentages
Cyan7.5%
Magenta0.0%
Yellow81.7%
Key (black)5.9%
Color previews
#def02c text on a black background
contrast 16.61:1
Card sample
#def02c text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def02c;
Background color
Panel with #def02c background
background-color: #def02c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def02c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 240, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 240, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def02c; background: linear-gradient(135deg, #def02c, #5BF02C);