Skip to content

#eccc2f

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

RGB
236, 204, 47
HSL
50°, 83%, 56%
CMYK
0, 14, 80, 8
Luminance
0.6122

Every format

HEX#eccc2f
RGBrgb(236, 204, 47)
HSLhsl(50, 83%, 56%)
CMYKcmyk(0%, 14%, 80%, 8%)
LABlab(82.5 -3.7 75.2)
LCHlch(82.5 75.3 92.8)
OKLCHoklch(0.848 0.164 96.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#eccc2f on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#eccc2f on black: 13.24:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green80.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow80.1%
Key (black)7.5%

Color previews

#eccc2f text on a black background

contrast 13.24:1

Card sample

#eccc2f text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 204, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 204, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #eccc2f;
background: linear-gradient(135deg, #eccc2f, #8EEC2F);

Monochromatic scale

Palettes built from #eccc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccc2f in the Color Lab