Skip to content

#ecdf2f

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

RGB
236, 223, 47
HSL
56°, 83%, 56%
CMYK
0, 6, 80, 8
Luminance
0.7081

Every format

HEX#ecdf2f
RGBrgb(236, 223, 47)
HSLhsl(56, 83%, 56%)
CMYKcmyk(0%, 6%, 80%, 8%)
LABlab(87.4 -13.2 79.5)
LCHlch(87.4 80.6 99.4)
OKLCHoklch(0.887 0.178 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green87.5%
Blue18.4%

CMYK percentages

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

Color previews

#ecdf2f text on a black background

contrast 15.16:1

Card sample

#ecdf2f text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf2f in the Color Lab