Skip to content

#dfba17

a balanced, electric yellow · cool · closest name: gold

RGB
223, 186, 23
HSL
49°, 81%, 48%
CMYK
0, 17, 90, 13
Luminance
0.5087

Every format

HEX#dfba17
RGBrgb(223, 186, 23)
HSLhsl(49, 81%, 48%)
CMYKcmyk(0%, 17%, 90%, 13%)
LABlab(76.6 -0.6 75.6)
LCHlch(76.6 75.6 90.4)
OKLCHoklch(0.798 0.160 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green72.9%
Blue9.0%

CMYK percentages

Cyan0.0%
Magenta16.6%
Yellow89.7%
Key (black)12.5%

Color previews

#dfba17 text on a black background

contrast 11.17:1

Card sample

#dfba17 text on a white background

contrast 1.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 186, 23, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 186, 23, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfba17;
background: linear-gradient(135deg, #dfba17, #7FDF17);

Monochromatic scale

Palettes built from #dfba17

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfba17 in the Color Lab