Skip to content

#ecc40c

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

RGB
236, 196, 12
HSL
49°, 90%, 49%
CMYK
0, 17, 95, 8
Luminance
0.5734

Every format

HEX#ecc40c
RGBrgb(236, 196, 12)
HSLhsl(49, 90%, 49%)
CMYKcmyk(0%, 17%, 95%, 8%)
LABlab(80.4 -0.3 80.5)
LCHlch(80.4 80.5 90.2)
OKLCHoklch(0.831 0.169 93.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc40c on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#ecc40c on black: 12.47:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green76.9%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta16.9%
Yellow94.9%
Key (black)7.5%

Color previews

#ecc40c text on a black background

contrast 12.47:1

Card sample

#ecc40c text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc40c in the Color Lab