Skip to content

#dfb20c

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

RGB
223, 178, 12
HSL
47°, 90%, 46%
CMYK
0, 20, 95, 13
Luminance
0.4756

Every format

HEX#dfb20c
RGBrgb(223, 178, 12)
HSLhsl(47, 90%, 46%)
CMYKcmyk(0%, 20%, 95%, 13%)
LABlab(74.5 3.5 75.7)
LCHlch(74.5 75.8 87.4)
OKLCHoklch(0.782 0.158 90.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb20c on white: 2.00:1
AA ✗ fail · AA-large · AAA
Aa
#dfb20c on black: 10.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green69.8%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta20.2%
Yellow94.6%
Key (black)12.5%

Color previews

#dfb20c text on a black background

contrast 10.51:1

Card sample

#dfb20c text on a white background

contrast 2.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb20c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb20c in the Color Lab