Skip to content

#dfb404

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

RGB
223, 180, 4
HSL
48°, 97%, 45%
CMYK
0, 19, 98, 13
Luminance
0.4834

Every format

HEX#dfb404
RGBrgb(223, 180, 4)
HSLhsl(48, 97%, 45%)
CMYKcmyk(0%, 19%, 98%, 13%)
LABlab(75.0 2.4 76.9)
LCHlch(75.0 77.0 88.2)
OKLCHoklch(0.786 0.160 91.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfb404 on white: 1.97:1
AA ✗ fail · AA-large · AAA
Aa
#dfb404 on black: 10.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green70.6%
Blue1.6%

CMYK percentages

Cyan0.0%
Magenta19.3%
Yellow98.2%
Key (black)12.5%

Color previews

#dfb404 text on a black background

contrast 10.67:1

Card sample

#dfb404 text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb404

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb404 in the Color Lab