Skip to content

#dfd99f

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

RGB
223, 217, 159
HSL
54°, 50%, 75%
CMYK
0, 3, 29, 13
Luminance
0.6782

Every format

HEX#dfd99f
RGBrgb(223, 217, 159)
HSLhsl(54, 50%, 75%)
CMYKcmyk(0%, 3%, 29%, 13%)
LABlab(85.9 -6.8 29.4)
LCHlch(85.9 30.2 103.1)
OKLCHoklch(0.876 0.076 102.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd99f on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#dfd99f on black: 14.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.1%
Blue62.4%

CMYK percentages

Cyan0.0%
Magenta2.7%
Yellow28.7%
Key (black)12.5%

Color previews

#dfd99f text on a black background

contrast 14.56:1

Card sample

#dfd99f text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd99f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd99f in the Color Lab