Skip to content

#dfdf97

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

RGB
223, 223, 151
HSL
60°, 53%, 73%
CMYK
0, 0, 32, 13
Luminance
0.7070

Every format

HEX#dfdf97
RGBrgb(223, 223, 151)
HSLhsl(60, 53%, 73%)
CMYKcmyk(0%, 0%, 32%, 13%)
LABlab(87.3 -10.8 35.4)
LCHlch(87.3 37.0 107.1)
OKLCHoklch(0.887 0.092 108.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf97 on white: 1.39:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf97 on black: 15.14:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow32.3%
Key (black)12.5%

Color previews

#dfdf97 text on a black background

contrast 15.14:1

Card sample

#dfdf97 text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf97 in the Color Lab