Skip to content

#eccf1d

a balanced, electric yellow · cool · closest name: gold

RGB
236, 207, 29
HSL
52°, 85%, 52%
CMYK
0, 12, 88, 8
Luminance
0.6255

Every format

HEX#eccf1d
RGBrgb(236, 207, 29)
HSLhsl(52, 85%, 52%)
CMYKcmyk(0%, 12%, 88%, 8%)
LABlab(83.2 -5.6 80.1)
LCHlch(83.2 80.3 94.0)
OKLCHoklch(0.853 0.172 98.6)

Copy-ready code

/* CSS */
color: #eccf1d;
background-color: #eccf1d;
/* Tailwind (arbitrary) */
class="text-[#eccf1d] bg-[#eccf1d]"
/* SCSS */
$brand: #eccf1d;
/* SwiftUI */
Color(red: 0.925, green: 0.812, blue: 0.114)
/* Android */
Color.parseColor("#eccf1d")

Accessibility — WCAG contrast

Aa
#eccf1d on white: 1.55:1
AA ✗ fail · AA-large · AAA
Aa
#eccf1d on black: 13.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green81.2%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta12.3%
Yellow87.7%
Key (black)7.5%

Color previews

#eccf1d text on a black background

contrast 13.51:1

Card sample

#eccf1d text on a white background

contrast 1.55:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #eccf1d;
Background color
Panel with #eccf1d background
background-color: #eccf1d;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #eccf1d;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(236, 207, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 207, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccf1d;
background: linear-gradient(135deg, #eccf1d, #7FEC1D);

Monochromatic scale

Palettes built from #eccf1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccf1d in the Color Lab