Skip to content

#ecc61f

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

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

Every format

HEX#ecc61f
RGBrgb(236, 198, 31)
HSLhsl(49, 84%, 52%)
CMYKcmyk(0%, 16%, 87%, 8%)
LABlab(80.9 -1.0 77.9)
LCHlch(80.9 77.9 90.7)
OKLCHoklch(0.835 0.166 94.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecc61f on white: 1.66:1
AA ✗ fail · AA-large · AAA
Aa
#ecc61f on black: 12.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green77.6%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta16.1%
Yellow86.9%
Key (black)7.5%

Color previews

#ecc61f text on a black background

contrast 12.66:1

Card sample

#ecc61f text on a white background

contrast 1.66:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecc61f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecc61f in the Color Lab