Skip to content

#dfb40c

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

RGB
223, 180, 12
HSL
48°, 90%, 46%
CMYK
0, 19, 95, 13
Luminance
0.4836

Every format

HEX#dfb40c
RGBrgb(223, 180, 12)
HSLhsl(48, 90%, 46%)
CMYKcmyk(0%, 19%, 95%, 13%)
LABlab(75.0 2.4 76.0)
LCHlch(75.0 76.1 88.2)
OKLCHoklch(0.786 0.159 91.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green70.6%
Blue4.7%

CMYK percentages

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

Color previews

#dfb40c text on a black background

contrast 10.67:1

Card sample

#dfb40c text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb40c in the Color Lab