Skip to content

#dfd27f

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

RGB
223, 210, 127
HSL
52°, 60%, 69%
CMYK
0, 6, 43, 13
Luminance
0.6331

Every format

HEX#dfd27f
RGBrgb(223, 210, 127)
HSLhsl(52, 60%, 69%)
CMYKcmyk(0%, 6%, 43%, 13%)
LABlab(83.6 -6.9 42.6)
LCHlch(83.6 43.2 99.2)
OKLCHoklch(0.856 0.105 100.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd27f on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#dfd27f on black: 13.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green82.4%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow43.0%
Key (black)12.5%

Color previews

#dfd27f text on a black background

contrast 13.66:1

Card sample

#dfd27f text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd27f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd27f in the Color Lab