Skip to content

#ecdf7f

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

RGB
236, 223, 127
HSL
53°, 74%, 71%
CMYK
0, 6, 46, 8
Luminance
0.7214

Every format

HEX#ecdf7f
RGBrgb(236, 223, 127)
HSLhsl(53, 74%, 71%)
CMYKcmyk(0%, 6%, 46%, 8%)
LABlab(88.0 -8.3 48.4)
LCHlch(88.0 49.1 99.8)
OKLCHoklch(0.894 0.118 101.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ecdf7f on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#ecdf7f on black: 15.43:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red92.5%
Green87.5%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow46.2%
Key (black)7.5%

Color previews

#ecdf7f text on a black background

contrast 15.43:1

Card sample

#ecdf7f text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ecdf7f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ecdf7f in the Color Lab