Skip to content

#ecc71f

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

RGB
236, 199, 31
HSL
49°, 84%, 52%
CMYK
0, 16, 87, 8
Luminance
0.5878

Every format

HEX#ecc71f
RGBrgb(236, 199, 31)
HSLhsl(49, 84%, 52%)
CMYKcmyk(0%, 16%, 87%, 8%)
LABlab(81.2 -1.5 78.1)
LCHlch(81.2 78.1 91.1)
OKLCHoklch(0.837 0.166 94.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc71f on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#ecc71f on black: 12.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green78.0%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow86.9%
Key (black)7.5%

Color previews

#ecc71f text on a black background

contrast 12.76:1

Card sample

#ecc71f text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc71f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc71f in the Color Lab