Skip to content

#ecdf2e

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

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

Every format

HEX#ecdf2e
RGBrgb(236, 223, 46)
HSLhsl(56, 83%, 55%)
CMYKcmyk(0%, 6%, 81%, 8%)
LABlab(87.4 -13.3 79.8)
LCHlch(87.4 80.8 99.4)
OKLCHoklch(0.887 0.178 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green87.5%
Blue18.0%

CMYK percentages

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

Color previews

#ecdf2e text on a black background

contrast 15.16:1

Card sample

#ecdf2e text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf2e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf2e in the Color Lab