Skip to content

#dfbf2b

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

RGB
223, 191, 43
HSL
49°, 74%, 52%
CMYK
0, 14, 81, 13
Luminance
0.5312

Every format

HEX#dfbf2b
RGBrgb(223, 191, 43)
HSLhsl(49, 74%, 52%)
CMYKcmyk(0%, 14%, 81%, 13%)
LABlab(78.0 -2.7 72.0)
LCHlch(78.0 72.0 92.1)
OKLCHoklch(0.809 0.156 95.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green74.9%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta14.3%
Yellow80.7%
Key (black)12.5%

Color previews

#dfbf2b text on a black background

contrast 11.62:1

Card sample

#dfbf2b text on a white background

contrast 1.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfbf2b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbf2b in the Color Lab