#ecec2f
a balanced, electric yellow · cool · closest name: yellow
RGB
236, 236, 47
HSL
60°, 83%, 56%
CMYK
0, 0, 80, 8
Luminance
0.7803
Every format
| HEX | #ecec2f |
| RGB | rgb(236, 236, 47) |
| HSL | hsl(60, 83%, 56%) |
| CMYK | cmyk(0%, 0%, 80%, 8%) |
| LAB | lab(90.8 -19.6 82.4) |
| LCH | lch(90.8 84.7 103.4) |
| OKLCH | oklch(0.914 0.189 109.6) |
Copy-ready code
/* CSS */
color: #ecec2f;
background-color: #ecec2f;
/* Tailwind (arbitrary) */
class="text-[#ecec2f] bg-[#ecec2f]"
/* SCSS */
$brand: #ecec2f;
/* SwiftUI */
Color(red: 0.925, green: 0.925, blue: 0.184)
/* Android */
Color.parseColor("#ecec2f")Accessibility — WCAG contrast
Aa
#ecec2f on white: 1.26:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#ecec2f on black: 16.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green92.5%
Blue18.4%
CMYK percentages
Cyan0.0%
Magenta0.0%
Yellow80.1%
Key (black)7.5%
Color previews
#ecec2f text on a black background
contrast 16.61:1
Card sample
#ecec2f text on a white background
contrast 1.26:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ecec2f;
Background color
Panel with #ecec2f background
background-color: #ecec2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ecec2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 236, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 236, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecec2f; background: linear-gradient(135deg, #ecec2f, #6EEC2F);