Skip to content

#ecdf9c

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

RGB
236, 223, 156
HSL
50°, 68%, 77%
CMYK
0, 6, 34, 8
Luminance
0.7301

Every format

HEX#ecdf9c
RGBrgb(236, 223, 156)
HSLhsl(50, 68%, 77%)
CMYKcmyk(0%, 6%, 34%, 8%)
LABlab(88.5 -5.3 34.5)
LCHlch(88.5 34.9 98.7)
OKLCHoklch(0.899 0.087 98.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green87.5%
Blue61.2%

CMYK percentages

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

Color previews

#ecdf9c text on a black background

contrast 15.60:1

Card sample

#ecdf9c text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf9c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf9c in the Color Lab