Skip to content

#dfab16

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

RGB
223, 171, 22
HSL
45°, 82%, 48%
CMYK
0, 23, 90, 13
Luminance
0.4487

Every format

HEX#dfab16
RGBrgb(223, 171, 22)
HSLhsl(45, 82%, 48%)
CMYKcmyk(0%, 23%, 90%, 13%)
LABlab(72.8 7.3 72.8)
LCHlch(72.8 73.2 84.3)
OKLCHoklch(0.768 0.153 85.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green67.1%
Blue8.6%

CMYK percentages

Cyan0.0%
Magenta23.3%
Yellow90.1%
Key (black)12.5%

Color previews

#dfab16 text on a black background

contrast 9.97:1

Card sample

#dfab16 text on a white background

contrast 2.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfab16

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfab16 in the Color Lab