Skip to content

#ecdf2c

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

RGB
236, 223, 44
HSL
56°, 84%, 55%
CMYK
0, 6, 81, 8
Luminance
0.7079

Every format

HEX#ecdf2c
RGBrgb(236, 223, 44)
HSLhsl(56, 84%, 55%)
CMYKcmyk(0%, 6%, 81%, 8%)
LABlab(87.4 -13.3 80.3)
LCHlch(87.4 81.3 99.4)
OKLCHoklch(0.887 0.179 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf2c on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf2c on black: 15.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green87.5%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow81.4%
Key (black)7.5%

Color previews

#ecdf2c text on a black background

contrast 15.16:1

Card sample

#ecdf2c text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 223, 44, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 223, 44, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ecdf2c;
background: linear-gradient(135deg, #ecdf2c, #79EC2C);

Monochromatic scale

Palettes built from #ecdf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf2c in the Color Lab