#def321
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 243, 33
HSL
66°, 90%, 54%
CMYK
9, 0, 86, 5
Luminance
0.7974
Every format
| HEX | #def321 |
| RGB | rgb(222, 243, 33) |
| HSL | hsl(66, 90%, 54%) |
| CMYK | cmyk(9%, 0%, 86%, 5%) |
| LAB | lab(91.6 -29.0 85.6) |
| LCH | lch(91.6 90.4 108.7) |
| OKLCH | oklch(0.917 0.204 116.0) |
Copy-ready code
/* CSS */
color: #def321;
background-color: #def321;
/* Tailwind (arbitrary) */
class="text-[#def321] bg-[#def321]"
/* SCSS */
$brand: #def321;
/* SwiftUI */
Color(red: 0.871, green: 0.953, blue: 0.129)
/* Android */
Color.parseColor("#def321")Accessibility — WCAG contrast
Aa
#def321 on white: 1.24:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#def321 on black: 16.95:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green95.3%
Blue12.9%
CMYK percentages
Cyan8.6%
Magenta0.0%
Yellow86.4%
Key (black)4.7%
Color previews
#def321 text on a black background
contrast 16.95:1
Card sample
#def321 text on a white background
contrast 1.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #def321;
Background color
Panel with #def321 background
background-color: #def321;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #def321;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 243, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 243, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #def321; background: linear-gradient(135deg, #def321, #52F321);