Skip to content

#dfb22f

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

RGB
223, 178, 47
HSL
45°, 73%, 53%
CMYK
0, 20, 79, 13
Luminance
0.4773

Every format

HEX#dfb22f
RGBrgb(223, 178, 47)
HSLhsl(45, 73%, 53%)
CMYKcmyk(0%, 20%, 79%, 13%)
LABlab(74.7 4.3 67.8)
LCHlch(74.7 67.9 86.4)
OKLCHoklch(0.783 0.147 88.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb22f on white: 1.99:1
AA ✗ fail · AA-large · AAA
Aa
#dfb22f on black: 10.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green69.8%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta20.2%
Yellow78.9%
Key (black)12.5%

Color previews

#dfb22f text on a black background

contrast 10.55:1

Card sample

#dfb22f text on a white background

contrast 1.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 178, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 178, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfb22f;
background: linear-gradient(135deg, #dfb22f, #96DF2F);

Monochromatic scale

Palettes built from #dfb22f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb22f in the Color Lab