Skip to content

#dfdf8b

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

RGB
223, 223, 139
HSL
60°, 57%, 71%
CMYK
0, 0, 38, 13
Luminance
0.7033

Every format

HEX#dfdf8b
RGBrgb(223, 223, 139)
HSLhsl(60, 57%, 71%)
CMYKcmyk(0%, 0%, 38%, 13%)
LABlab(87.2 -12.2 41.2)
LCHlch(87.2 43.0 106.5)
OKLCHoklch(0.885 0.106 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#dfdf8b text on a black background

contrast 15.07:1

Card sample

#dfdf8b text on a white background

contrast 1.39:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf8b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf8b in the Color Lab