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