#def039
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 240, 57
HSL
66°, 86%, 58%
CMYK
8, 0, 76, 6
Luminance
0.7815
Every format
| HEX | #def039 |
| RGB | rgb(222, 240, 57) |
| HSL | hsl(66, 86%, 58%) |
| CMYK | cmyk(8%, 0%, 76%, 6%) |
| LAB | lab(90.8 -26.9 79.4) |
| LCH | lch(90.8 83.8 108.7) |
| OKLCH | oklch(0.912 0.192 115.3) |
Copy-ready code
/* CSS */
color: #def039;
background-color: #def039;
/* Tailwind (arbitrary) */
class="text-[#def039] bg-[#def039]"
/* SCSS */
$brand: #def039;
/* SwiftUI */
Color(red: 0.871, green: 0.941, blue: 0.224)
/* Android */
Color.parseColor("#def039")Accessibility — WCAG contrast
Aa
#def039 on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def039 on black: 16.63:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green94.1%
Blue22.4%
CMYK percentages
Cyan7.5%
Magenta0.0%
Yellow76.3%
Key (black)5.9%
Color previews
#def039 text on a black background
contrast 16.63:1
Card sample
#def039 text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def039;
Background color
Panel with #def039 background
background-color: #def039;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def039;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 240, 57, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 240, 57, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def039; background: linear-gradient(135deg, #def039, #64F039);