#ecef21
a balanced, electric yellow · cool · closest name: yellow
RGB
236, 239, 33
HSL
61°, 87%, 53%
CMYK
1, 0, 86, 6
Luminance
0.7968
Every format
| HEX | #ecef21 |
| RGB | rgb(236, 239, 33) |
| HSL | hsl(61, 87%, 53%) |
| CMYK | cmyk(1%, 0%, 86%, 6%) |
| LAB | lab(91.5 -21.4 86.0) |
| LCH | lch(91.5 88.7 103.9) |
| OKLCH | oklch(0.920 0.196 110.6) |
Copy-ready code
/* CSS */
color: #ecef21;
background-color: #ecef21;
/* Tailwind (arbitrary) */
class="text-[#ecef21] bg-[#ecef21]"
/* SCSS */
$brand: #ecef21;
/* SwiftUI */
Color(red: 0.925, green: 0.937, blue: 0.129)
/* Android */
Color.parseColor("#ecef21")Accessibility — WCAG contrast
Aa
#ecef21 on white: 1.24:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ecef21 on black: 16.94:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green93.7%
Blue12.9%
CMYK percentages
Cyan1.3%
Magenta0.0%
Yellow86.2%
Key (black)6.3%
Color previews
#ecef21 text on a black background
contrast 16.94:1
Card sample
#ecef21 text on a white background
contrast 1.24:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ecef21;
Background color
Panel with #ecef21 background
background-color: #ecef21;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ecef21;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 239, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 239, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecef21; background: linear-gradient(135deg, #ecef21, #62EF21);