#eccf51
a balanced, electric yellow · cool · closest name: khaki
RGB
236, 207, 81
HSL
49°, 80%, 62%
CMYK
0, 12, 66, 8
Luminance
0.6305
Every format
| HEX | #eccf51 |
| RGB | rgb(236, 207, 81) |
| HSL | hsl(49, 80%, 62%) |
| CMYK | cmyk(0%, 12%, 66%, 8%) |
| LAB | lab(83.5 -3.7 64.1) |
| LCH | lch(83.5 64.2 93.3) |
| OKLCH | oklch(0.856 0.146 96.1) |
Copy-ready code
/* CSS */
color: #eccf51;
background-color: #eccf51;
/* Tailwind (arbitrary) */
class="text-[#eccf51] bg-[#eccf51]"
/* SCSS */
$brand: #eccf51;
/* SwiftUI */
Color(red: 0.925, green: 0.812, blue: 0.318)
/* Android */
Color.parseColor("#eccf51")Accessibility — WCAG contrast
Aa
#eccf51 on white: 1.54:1
AA ✗ fail · AA-large ✗ · AAA ✗
Aa
#eccf51 on black: 13.61:1
AA ✓ pass · AA-large ✓ · AAA ✓
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red92.5%
Green81.2%
Blue31.8%
CMYK percentages
Cyan0.0%
Magenta12.3%
Yellow65.7%
Key (black)7.5%
Color previews
#eccf51 text on a black background
contrast 13.61:1
Card sample
#eccf51 text on a white background
contrast 1.54:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #eccf51;
Background color
Panel with #eccf51 background
background-color: #eccf51;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #eccf51;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(236, 207, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 207, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccf51; background: linear-gradient(135deg, #eccf51, #A2EC51);