Skip to content

#ecdf2d

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

RGB
236, 223, 45
HSL
56°, 83%, 55%
CMYK
0, 6, 81, 8
Luminance
0.7080

Every format

HEX#ecdf2d
RGBrgb(236, 223, 45)
HSLhsl(56, 83%, 55%)
CMYKcmyk(0%, 6%, 81%, 8%)
LABlab(87.4 -13.3 80.0)
LCHlch(87.4 81.1 99.4)
OKLCHoklch(0.887 0.178 105.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green87.5%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow80.9%
Key (black)7.5%

Color previews

#ecdf2d text on a black background

contrast 15.16:1

Card sample

#ecdf2d text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf2d in the Color Lab