Skip to content

#ecc80c

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

RGB
236, 200, 12
HSL
50°, 90%, 49%
CMYK
0, 15, 95, 8
Luminance
0.5917

Every format

HEX#ecc80c
RGBrgb(236, 200, 12)
HSLhsl(50, 90%, 49%)
CMYKcmyk(0%, 15%, 95%, 8%)
LABlab(81.4 -2.3 81.3)
LCHlch(81.4 81.3 91.6)
OKLCHoklch(0.839 0.171 95.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc80c on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#ecc80c on black: 12.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.4%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta15.3%
Yellow94.9%
Key (black)7.5%

Color previews

#ecc80c text on a black background

contrast 12.83:1

Card sample

#ecc80c text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc80c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc80c in the Color Lab