#ece40c
a balanced, electric yellow · cool · closest name: yellow
RGB
236, 228, 12
HSL
58°, 90%, 49%
CMYK
0, 3, 95, 8
Luminance
0.7335
Every format
| HEX | #ece40c |
| RGB | rgb(236, 228, 12) |
| HSL | hsl(58, 90%, 49%) |
| CMYK | cmyk(0%, 3%, 95%, 8%) |
| LAB | lab(88.6 -16.4 86.6) |
| LCH | lch(88.6 88.1 100.7) |
| OKLCH | oklch(0.896 0.191 107.1) |
Copy-ready code
/* CSS */
color: #ece40c;
background-color: #ece40c;
/* Tailwind (arbitrary) */
class="text-[#ece40c] bg-[#ece40c]"
/* SCSS */
$brand: #ece40c;
/* SwiftUI */
Color(red: 0.925, green: 0.894, blue: 0.047)
/* Android */
Color.parseColor("#ece40c")Accessibility — WCAG contrast
Aa
#ece40c on white: 1.34:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ece40c on black: 15.67:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green89.4%
Blue4.7%
CMYK percentages
Cyan0.0%
Magenta3.4%
Yellow94.9%
Key (black)7.5%
Color previews
#ece40c text on a black background
contrast 15.67:1
Card sample
#ece40c text on a white background
contrast 1.34:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ece40c;
Background color
Panel with #ece40c background
background-color: #ece40c;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ece40c;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 228, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 228, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ece40c; background: linear-gradient(135deg, #ece40c, #5EEC0C);