Skip to content

#dfec8e

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

RGB
223, 236, 142
HSL
68°, 71%, 74%
CMYK
6, 0, 40, 8
Luminance
0.7763

Every format

HEX#dfec8e
RGBrgb(223, 236, 142)
HSLhsl(68, 71%, 74%)
CMYKcmyk(6%, 0%, 40%, 8%)
LABlab(90.6 -18.3 44.1)
LCHlch(90.6 47.7 112.6)
OKLCHoklch(0.913 0.119 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfec8e on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#dfec8e on black: 16.53:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green92.5%
Blue55.7%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow39.8%
Key (black)7.5%

Color previews

#dfec8e text on a black background

contrast 16.53:1

Card sample

#dfec8e text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfec8e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfec8e in the Color Lab