Skip to content

#dfd38b

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

RGB
223, 211, 139
HSL
51°, 57%, 71%
CMYK
0, 5, 38, 13
Luminance
0.6414

Every format

HEX#dfd38b
RGBrgb(223, 211, 139)
HSLhsl(51, 57%, 71%)
CMYKcmyk(0%, 5%, 38%, 13%)
LABlab(84.0 -6.2 37.2)
LCHlch(84.0 37.7 99.4)
OKLCHoklch(0.860 0.093 99.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd38b on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#dfd38b on black: 13.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green82.7%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta5.4%
Yellow37.7%
Key (black)12.5%

Color previews

#dfd38b text on a black background

contrast 13.83:1

Card sample

#dfd38b text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd38b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd38b in the Color Lab