Skip to content

#dfb940

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

RGB
223, 185, 64
HSL
46°, 71%, 56%
CMYK
0, 17, 71, 13
Luminance
0.5076

Every format

HEX#dfb940
RGBrgb(223, 185, 64)
HSLhsl(46, 71%, 56%)
CMYKcmyk(0%, 17%, 71%, 13%)
LABlab(76.5 1.3 63.4)
LCHlch(76.5 63.4 88.9)
OKLCHoklch(0.798 0.141 91.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb940 on white: 1.88:1
AA ✗ fail · AA-large · AAA
Aa
#dfb940 on black: 11.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green72.5%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta17.0%
Yellow71.3%
Key (black)12.5%

Color previews

#dfb940 text on a black background

contrast 11.15:1

Card sample

#dfb940 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb940

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb940 in the Color Lab