Skip to content

#dfd96f

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

RGB
223, 217, 111
HSL
57°, 64%, 66%
CMYK
0, 3, 50, 13
Luminance
0.6646

Every format

HEX#dfd96f
RGBrgb(223, 217, 111)
HSLhsl(57, 64%, 66%)
CMYKcmyk(0%, 3%, 50%, 13%)
LABlab(85.2 -12.0 52.4)
LCHlch(85.2 53.7 102.9)
OKLCHoklch(0.869 0.129 105.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd96f on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#dfd96f on black: 14.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.1%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta2.7%
Yellow50.2%
Key (black)12.5%

Color previews

#dfd96f text on a black background

contrast 14.29:1

Card sample

#dfd96f text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 217, 111, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 217, 111, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd96f;
background: linear-gradient(135deg, #dfd96f, #9ADF6F);

Monochromatic scale

Palettes built from #dfd96f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd96f in the Color Lab