#eccd2f
a balanced, electric yellow · cool · closest name: gold
RGB
236, 205, 47
HSL
50°, 83%, 56%
CMYK
0, 13, 80, 8
Luminance
0.6170
Every format
| HEX | #eccd2f |
| RGB | rgb(236, 205, 47) |
| HSL | hsl(50, 83%, 56%) |
| CMYK | cmyk(0%, 13%, 80%, 8%) |
| LAB | lab(82.8 -4.2 75.5) |
| LCH | lch(82.8 75.6 93.2) |
| OKLCH | oklch(0.850 0.164 97.1) |
Copy-ready code
/* CSS */
color: #eccd2f;
background-color: #eccd2f;
/* Tailwind (arbitrary) */
class="text-[#eccd2f] bg-[#eccd2f]"
/* SCSS */
$brand: #eccd2f;
/* SwiftUI */
Color(red: 0.925, green: 0.804, blue: 0.184)
/* Android */
Color.parseColor("#eccd2f")Accessibility — WCAG contrast
Aa
#eccd2f on white: 1.57:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#eccd2f on black: 13.34:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green80.4%
Blue18.4%
CMYK percentages
Cyan0.0%
Magenta13.1%
Yellow80.1%
Key (black)7.5%
Color previews
#eccd2f text on a black background
contrast 13.34:1
Card sample
#eccd2f text on a white background
contrast 1.57:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #eccd2f;
Background color
Panel with #eccd2f background
background-color: #eccd2f;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #eccd2f;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 205, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 205, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccd2f; background: linear-gradient(135deg, #eccd2f, #8DEC2F);