Skip to content

#dfda5f

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

RGB
223, 218, 95
HSL
58°, 67%, 62%
CMYK
0, 2, 57, 13
Luminance
0.6666

Every format

HEX#dfda5f
RGBrgb(223, 218, 95)
HSLhsl(58, 67%, 62%)
CMYKcmyk(0%, 2%, 57%, 13%)
LABlab(85.3 -13.7 59.8)
LCHlch(85.3 61.3 102.9)
OKLCHoklch(0.869 0.144 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfda5f on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#dfda5f on black: 14.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.5%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow57.4%
Key (black)12.5%

Color previews

#dfda5f text on a black background

contrast 14.33:1

Card sample

#dfda5f text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfda5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfda5f in the Color Lab