Skip to content

#dfbf2f

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

RGB
223, 191, 47
HSL
49°, 73%, 53%
CMYK
0, 14, 79, 13
Luminance
0.5315

Every format

HEX#dfbf2f
RGBrgb(223, 191, 47)
HSLhsl(49, 73%, 53%)
CMYKcmyk(0%, 14%, 79%, 13%)
LABlab(78.0 -2.5 70.8)
LCHlch(78.0 70.8 92.1)
OKLCHoklch(0.809 0.154 95.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfbf2f on white: 1.81:1
AA ✗ fail · AA-large · AAA
Aa
#dfbf2f on black: 11.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green74.9%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta14.3%
Yellow78.9%
Key (black)12.5%

Color previews

#dfbf2f text on a black background

contrast 11.63:1

Card sample

#dfbf2f text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfbf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbf2f in the Color Lab