Skip to content

#dfb40b

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

RGB
223, 180, 11
HSL
48°, 91%, 46%
CMYK
0, 19, 95, 13
Luminance
0.4835

Every format

HEX#dfb40b
RGBrgb(223, 180, 11)
HSLhsl(48, 91%, 46%)
CMYKcmyk(0%, 19%, 95%, 13%)
LABlab(75.0 2.4 76.2)
LCHlch(75.0 76.2 88.2)
OKLCHoklch(0.786 0.159 91.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green70.6%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta19.3%
Yellow95.1%
Key (black)12.5%

Color previews

#dfb40b text on a black background

contrast 10.67:1

Card sample

#dfb40b text on a white background

contrast 1.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfb40b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfb40b in the Color Lab