Skip to content

#eccd1f

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

RGB
236, 205, 31
HSL
51°, 84%, 52%
CMYK
0, 13, 87, 8
Luminance
0.6159

Every format

HEX#eccd1f
RGBrgb(236, 205, 31)
HSLhsl(51, 84%, 52%)
CMYKcmyk(0%, 13%, 87%, 8%)
LABlab(82.7 -4.6 79.3)
LCHlch(82.7 79.5 93.3)
OKLCHoklch(0.849 0.170 97.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccd1f on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#eccd1f on black: 13.32:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.4%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta13.1%
Yellow86.9%
Key (black)7.5%

Color previews

#eccd1f text on a black background

contrast 13.32:1

Card sample

#eccd1f text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 205, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 205, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccd1f;
background: linear-gradient(135deg, #eccd1f, #83EC1F);

Monochromatic scale

Palettes built from #eccd1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccd1f in the Color Lab