#def042
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 240, 66
HSL
66°, 85%, 60%
CMYK
8, 0, 73, 6
Luminance
0.7824
Every format
| HEX | #def042 |
| RGB | rgb(222, 240, 66) |
| HSL | hsl(66, 85%, 60%) |
| CMYK | cmyk(8%, 0%, 73%, 6%) |
| LAB | lab(90.9 -26.5 76.7) |
| LCH | lch(90.9 81.1 109.1) |
| OKLCH | oklch(0.912 0.188 115.4) |
Copy-ready code
/* CSS */
color: #def042;
background-color: #def042;
/* Tailwind (arbitrary) */
class="text-[#def042] bg-[#def042]"
/* SCSS */
$brand: #def042;
/* SwiftUI */
Color(red: 0.871, green: 0.941, blue: 0.259)
/* Android */
Color.parseColor("#def042")Accessibility — WCAG contrast
Aa
#def042 on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def042 on black: 16.65:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green94.1%
Blue25.9%
CMYK percentages
Cyan7.5%
Magenta0.0%
Yellow72.5%
Key (black)5.9%
Color previews
#def042 text on a black background
contrast 16.65:1
Card sample
#def042 text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def042;
Background color
Panel with #def042 background
background-color: #def042;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def042;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 240, 66, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 240, 66, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def042; background: linear-gradient(135deg, #def042, #6AF042);