Skip to content

#dfbf4f

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

RGB
223, 191, 79
HSL
47°, 69%, 59%
CMYK
0, 14, 65, 13
Luminance
0.5351

Every format

HEX#dfbf4f
RGBrgb(223, 191, 79)
HSLhsl(47, 69%, 59%)
CMYKcmyk(0%, 14%, 65%, 13%)
LABlab(78.2 -1.0 58.9)
LCHlch(78.2 58.9 91.0)
OKLCHoklch(0.812 0.134 93.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfbf4f on white: 1.79:1
AA ✗ fail · AA-large · AAA
Aa
#dfbf4f on black: 11.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green74.9%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta14.3%
Yellow64.6%
Key (black)12.5%

Color previews

#dfbf4f text on a black background

contrast 11.70:1

Card sample

#dfbf4f text on a white background

contrast 1.79:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 191, 79, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 191, 79, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfbf4f;
background: linear-gradient(135deg, #dfbf4f, #9FDF4F);

Monochromatic scale

Palettes built from #dfbf4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbf4f in the Color Lab