Skip to content

#ecdb2f

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

RGB
236, 219, 47
HSL
55°, 83%, 56%
CMYK
0, 7, 80, 8
Luminance
0.6870

Every format

HEX#ecdb2f
RGBrgb(236, 219, 47)
HSLhsl(55, 83%, 56%)
CMYKcmyk(0%, 7%, 80%, 8%)
LABlab(86.4 -11.2 78.6)
LCHlch(86.4 79.4 98.1)
OKLCHoklch(0.879 0.174 103.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdb2f on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#ecdb2f on black: 14.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green85.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta7.2%
Yellow80.1%
Key (black)7.5%

Color previews

#ecdb2f text on a black background

contrast 14.74:1

Card sample

#ecdb2f text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdb2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdb2f in the Color Lab