Skip to content

#ecdf98

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

RGB
236, 223, 152
HSL
51°, 69%, 76%
CMYK
0, 6, 36, 8
Luminance
0.7288

Every format

HEX#ecdf98
RGBrgb(236, 223, 152)
HSLhsl(51, 69%, 76%)
CMYKcmyk(0%, 6%, 36%, 8%)
LABlab(88.4 -5.7 36.4)
LCHlch(88.4 36.9 99.0)
OKLCHoklch(0.898 0.091 99.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red92.5%
Green87.5%
Blue59.6%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow35.6%
Key (black)7.5%

Color previews

#ecdf98 text on a black background

contrast 15.58:1

Card sample

#ecdf98 text on a white background

contrast 1.35:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf98 in the Color Lab