Skip to content

#dfbc2f

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

RGB
223, 188, 47
HSL
48°, 73%, 53%
CMYK
0, 16, 79, 13
Luminance
0.5186

Every format

HEX#dfbc2f
RGBrgb(223, 188, 47)
HSLhsl(48, 73%, 53%)
CMYKcmyk(0%, 16%, 79%, 13%)
LABlab(77.2 -1.0 70.1)
LCHlch(77.2 70.1 90.8)
OKLCHoklch(0.803 0.152 94.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfbc2f on white: 1.85:1
AA ✗ fail · AA-large · AAA
Aa
#dfbc2f on black: 11.37:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green73.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta15.7%
Yellow78.9%
Key (black)12.5%

Color previews

#dfbc2f text on a black background

contrast 11.37:1

Card sample

#dfbc2f text on a white background

contrast 1.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfbc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfbc2f in the Color Lab