Skip to content

#dfd38f

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

RGB
223, 211, 143
HSL
51°, 56%, 72%
CMYK
0, 5, 36, 13
Luminance
0.6426

Every format

HEX#dfd38f
RGBrgb(223, 211, 143)
HSLhsl(51, 56%, 72%)
CMYKcmyk(0%, 5%, 36%, 13%)
LABlab(84.1 -5.7 35.2)
LCHlch(84.1 35.7 99.2)
OKLCHoklch(0.861 0.088 99.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green82.7%
Blue56.1%

CMYK percentages

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

Color previews

#dfd38f text on a black background

contrast 13.85:1

Card sample

#dfd38f text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd38f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd38f in the Color Lab