Skip to content

#dfd28b

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

RGB
223, 210, 139
HSL
51°, 57%, 71%
CMYK
0, 6, 38, 13
Luminance
0.6365

Every format

HEX#dfd28b
RGBrgb(223, 210, 139)
HSLhsl(51, 57%, 71%)
CMYKcmyk(0%, 6%, 38%, 13%)
LABlab(83.8 -5.7 36.8)
LCHlch(83.8 37.3 98.7)
OKLCHoklch(0.858 0.092 99.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd28b on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#dfd28b on black: 13.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green82.4%
Blue54.5%

CMYK percentages

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

Color previews

#dfd28b text on a black background

contrast 13.73:1

Card sample

#dfd28b text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd28b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd28b in the Color Lab