Skip to content

#dfb40d

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

RGB
223, 180, 13
HSL
48°, 89%, 46%
CMYK
0, 19, 94, 13
Luminance
0.4836

Every format

HEX#dfb40d
RGBrgb(223, 180, 13)
HSLhsl(48, 89%, 46%)
CMYKcmyk(0%, 19%, 94%, 13%)
LABlab(75.0 2.4 75.9)
LCHlch(75.0 76.0 88.2)
OKLCHoklch(0.786 0.159 91.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green70.6%
Blue5.1%

CMYK percentages

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

Color previews

#dfb40d text on a black background

contrast 10.67:1

Card sample

#dfb40d text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb40d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb40d in the Color Lab