#ffef21
a balanced, electric yellow · cool · closest name: yellow
RGB
255, 239, 33
HSL
56°, 100%, 57%
CMYK
0, 6, 87, 0
Luminance
0.8310
Every format
| HEX | #ffef21 |
| RGB | rgb(255, 239, 33) |
| HSL | hsl(56, 100%, 57%) |
| CMYK | cmyk(0%, 6%, 87%, 0%) |
| LAB | lab(93.1 -13.5 87.9) |
| LCH | lch(93.1 88.9 98.7) |
| OKLCH | oklch(0.936 0.193 104.5) |
Copy-ready code
/* CSS */
color: #ffef21;
background-color: #ffef21;
/* Tailwind (arbitrary) */
class="text-[#ffef21] bg-[#ffef21]"
/* SCSS */
$brand: #ffef21;
/* SwiftUI */
Color(red: 1.000, green: 0.937, blue: 0.129)
/* Android */
Color.parseColor("#ffef21")Accessibility — WCAG contrast
Aa
#ffef21 on white: 1.19:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ffef21 on black: 17.62:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red100.0%
Green93.7%
Blue12.9%
CMYK percentages
Cyan0.0%
Magenta6.3%
Yellow87.1%
Key (black)0.0%
Color previews
#ffef21 text on a black background
contrast 17.62:1
Card sample
#ffef21 text on a white background
contrast 1.19:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ffef21;
Background color
Panel with #ffef21 background
background-color: #ffef21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ffef21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(255, 239, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 239, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffef21; background: linear-gradient(135deg, #ffef21, #7BFF21);