#def921
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 249, 33
HSL
68°, 95%, 55%
CMYK
11, 0, 87, 2
Luminance
0.8339
Every format
| HEX | #def921 |
| RGB | rgb(222, 249, 33) |
| HSL | hsl(68, 95%, 55%) |
| CMYK | cmyk(11%, 0%, 87%, 2%) |
| LAB | lab(93.2 -31.8 87.0) |
| LCH | lch(93.2 92.6 110.1) |
| OKLCH | oklch(0.930 0.210 117.5) |
Copy-ready code
/* CSS */
color: #def921;
background-color: #def921;
/* Tailwind (arbitrary) */
class="text-[#def921] bg-[#def921]"
/* SCSS */
$brand: #def921;
/* SwiftUI */
Color(red: 0.871, green: 0.976, blue: 0.129)
/* Android */
Color.parseColor("#def921")Accessibility — WCAG contrast
Aa
#def921 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def921 on black: 17.68:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green97.6%
Blue12.9%
CMYK percentages
Cyan10.8%
Magenta0.0%
Yellow86.7%
Key (black)2.4%
Color previews
#def921 text on a black background
contrast 17.68:1
Card sample
#def921 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def921;
Background color
Panel with #def921 background
background-color: #def921;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def921;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 249, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 249, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def921; background: linear-gradient(135deg, #def921, #4EF921);