Skip to content

#ecdf9a

a light, vivid yellow · cool · closest name: khaki

RGB
236, 223, 154
HSL
51°, 68%, 77%
CMYK
0, 6, 35, 8
Luminance
0.7294

Every format

HEX#ecdf9a
RGBrgb(236, 223, 154)
HSLhsl(51, 68%, 77%)
CMYKcmyk(0%, 6%, 35%, 8%)
LABlab(88.4 -5.5 35.5)
LCHlch(88.4 35.9 98.8)
OKLCHoklch(0.898 0.089 98.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf9a on white: 1.35:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf9a on black: 15.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green87.5%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow34.7%
Key (black)7.5%

Color previews

#ecdf9a text on a black background

contrast 15.59:1

Card sample

#ecdf9a text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf9a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf9a in the Color Lab