Skip to content

#dfd28f

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

RGB
223, 210, 143
HSL
50°, 56%, 72%
CMYK
0, 6, 36, 13
Luminance
0.6376

Every format

HEX#dfd28f
RGBrgb(223, 210, 143)
HSLhsl(50, 56%, 72%)
CMYKcmyk(0%, 6%, 36%, 13%)
LABlab(83.8 -5.2 34.9)
LCHlch(83.8 35.3 98.5)
OKLCHoklch(0.859 0.087 98.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green82.4%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow35.9%
Key (black)12.5%

Color previews

#dfd28f text on a black background

contrast 13.75:1

Card sample

#dfd28f text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd28f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd28f in the Color Lab