#defc21
a balanced, electric yellow · cool · closest name: yellow
RGB
222, 252, 33
HSL
68°, 97%, 56%
CMYK
12, 0, 87, 1
Luminance
0.8526
Every format
| HEX | #defc21 |
| RGB | rgb(222, 252, 33) |
| HSL | hsl(68, 97%, 56%) |
| CMYK | cmyk(12%, 0%, 87%, 1%) |
| LAB | lab(94.0 -33.1 87.6) |
| LCH | lch(94.0 93.7 110.7) |
| OKLCH | oklch(0.937 0.213 118.2) |
Copy-ready code
/* CSS */
color: #defc21;
background-color: #defc21;
/* Tailwind (arbitrary) */
class="text-[#defc21] bg-[#defc21]"
/* SCSS */
$brand: #defc21;
/* SwiftUI */
Color(red: 0.871, green: 0.988, blue: 0.129)
/* Android */
Color.parseColor("#defc21")Accessibility — WCAG contrast
Aa
#defc21 on white: 1.16:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#defc21 on black: 18.05:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red87.1%
Green98.8%
Blue12.9%
CMYK percentages
Cyan11.9%
Magenta0.0%
Yellow86.9%
Key (black)1.2%
Color previews
#defc21 text on a black background
contrast 18.05:1
Card sample
#defc21 text on a white background
contrast 1.16:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #defc21;
Background color
Panel with #defc21 background
background-color: #defc21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #defc21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(222, 252, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(222, 252, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #defc21; background: linear-gradient(135deg, #defc21, #4CFC21);