Skip to content

#dfab21

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

RGB
223, 171, 33
HSL
44°, 75%, 50%
CMYK
0, 23, 85, 13
Luminance
0.4492

Every format

HEX#dfab21
RGBrgb(223, 171, 33)
HSLhsl(44, 75%, 50%)
CMYKcmyk(0%, 23%, 85%, 13%)
LABlab(72.8 7.5 70.4)
LCHlch(72.8 70.8 83.9)
OKLCHoklch(0.769 0.150 85.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green67.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta23.3%
Yellow85.2%
Key (black)12.5%

Color previews

#dfab21 text on a black background

contrast 9.98:1

Card sample

#dfab21 text on a white background

contrast 2.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfab21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfab21 in the Color Lab