Skip to content

#dfcf4f

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

RGB
223, 207, 79
HSL
53°, 69%, 59%
CMYK
0, 7, 65, 13
Luminance
0.6088

Every format

HEX#dfcf4f
RGBrgb(223, 207, 79)
HSLhsl(53, 69%, 59%)
CMYKcmyk(0%, 7%, 65%, 13%)
LABlab(82.3 -9.3 63.3)
LCHlch(82.3 64.0 98.3)
OKLCHoklch(0.844 0.147 102.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfcf4f on white: 1.59:1
AA ✗ fail · AA-large · AAA
Aa
#dfcf4f on black: 13.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green81.2%
Blue31.0%

CMYK percentages

Cyan0.0%
Magenta7.2%
Yellow64.6%
Key (black)12.5%

Color previews

#dfcf4f text on a black background

contrast 13.18:1

Card sample

#dfcf4f text on a white background

contrast 1.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcf4f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcf4f in the Color Lab