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