Skip to content

#dfab17

a balanced, electric yellow · warm · closest name: orange

RGB
223, 171, 23
HSL
44°, 81%, 48%
CMYK
0, 23, 90, 13
Luminance
0.4488

Every format

HEX#dfab17
RGBrgb(223, 171, 23)
HSLhsl(44, 81%, 48%)
CMYKcmyk(0%, 23%, 90%, 13%)
LABlab(72.8 7.3 72.6)
LCHlch(72.8 73.0 84.2)
OKLCHoklch(0.768 0.153 85.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfab17 on white: 2.11:1
AA ✗ fail · AA-large · AAA
Aa
#dfab17 on black: 9.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green67.1%
Blue9.0%

CMYK percentages

Cyan0.0%
Magenta23.3%
Yellow89.7%
Key (black)12.5%

Color previews

#dfab17 text on a black background

contrast 9.98:1

Card sample

#dfab17 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfab17

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfab17 in the Color Lab