Skip to content

#dfb962

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

RGB
223, 185, 98
HSL
42°, 66%, 63%
CMYK
0, 17, 56, 13
Luminance
0.5127

Every format

HEX#dfb962
RGBrgb(223, 185, 98)
HSLhsl(42, 66%, 63%)
CMYKcmyk(0%, 17%, 56%, 13%)
LABlab(76.8 3.4 48.7)
LCHlch(76.8 48.8 86.0)
OKLCHoklch(0.802 0.115 86.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb962 on white: 1.87:1
AA ✗ fail · AA-large · AAA
Aa
#dfb962 on black: 11.25:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green72.5%
Blue38.4%

CMYK percentages

Cyan0.0%
Magenta17.0%
Yellow56.1%
Key (black)12.5%

Color previews

#dfb962 text on a black background

contrast 11.25:1

Card sample

#dfb962 text on a white background

contrast 1.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb962

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb962 in the Color Lab