Skip to content

#dfb004

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

RGB
223, 176, 4
HSL
47°, 97%, 45%
CMYK
0, 21, 98, 13
Luminance
0.4675

Every format

HEX#dfb004
RGBrgb(223, 176, 4)
HSLhsl(47, 97%, 45%)
CMYKcmyk(0%, 21%, 98%, 13%)
LABlab(74.0 4.5 76.2)
LCHlch(74.0 76.3 86.7)
OKLCHoklch(0.778 0.158 89.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb004 on white: 2.03:1
AA ✗ fail · AA-large · AAA
Aa
#dfb004 on black: 10.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green69.0%
Blue1.6%

CMYK percentages

Cyan0.0%
Magenta21.1%
Yellow98.2%
Key (black)12.5%

Color previews

#dfb004 text on a black background

contrast 10.35:1

Card sample

#dfb004 text on a white background

contrast 2.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb004

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb004 in the Color Lab