Skip to content

#dfdf8c

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

RGB
223, 223, 140
HSL
60°, 57%, 71%
CMYK
0, 0, 37, 13
Luminance
0.7036

Every format

HEX#dfdf8c
RGBrgb(223, 223, 140)
HSLhsl(60, 57%, 71%)
CMYKcmyk(0%, 0%, 37%, 13%)
LABlab(87.2 -12.1 40.7)
LCHlch(87.2 42.5 106.6)
OKLCHoklch(0.885 0.105 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow37.2%
Key (black)12.5%

Color previews

#dfdf8c text on a black background

contrast 15.07:1

Card sample

#dfdf8c text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf8c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf8c in the Color Lab