Skip to content

#eccc0f

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

RGB
236, 204, 15
HSL
51°, 88%, 49%
CMYK
0, 14, 94, 8
Luminance
0.6105

Every format

HEX#eccc0f
RGBrgb(236, 204, 15)
HSLhsl(51, 88%, 49%)
CMYKcmyk(0%, 14%, 94%, 8%)
LABlab(82.4 -4.3 81.7)
LCHlch(82.4 81.8 93.0)
OKLCHoklch(0.847 0.173 97.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green80.0%
Blue5.9%

CMYK percentages

Cyan0.0%
Magenta13.6%
Yellow93.6%
Key (black)7.5%

Color previews

#eccc0f text on a black background

contrast 13.21:1

Card sample

#eccc0f text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #eccc0f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #eccc0f in the Color Lab