Skip to content

#dfdb12

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

RGB
223, 219, 18
HSL
59°, 85%, 47%
CMYK
0, 2, 92, 13
Luminance
0.6639

Every format

HEX#dfdb12
RGBrgb(223, 219, 18)
HSLhsl(59, 85%, 47%)
CMYKcmyk(0%, 2%, 92%, 13%)
LABlab(85.2 -17.4 82.9)
LCHlch(85.2 84.7 101.8)
OKLCHoklch(0.867 0.185 108.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdb12 on white: 1.47:1
AA ✗ fail · AA-large · AAA
Aa
#dfdb12 on black: 14.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.9%
Blue7.1%

CMYK percentages

Cyan0.0%
Magenta1.8%
Yellow91.9%
Key (black)12.5%

Color previews

#dfdb12 text on a black background

contrast 14.28:1

Card sample

#dfdb12 text on a white background

contrast 1.47:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 219, 18, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 219, 18, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfdb12;
background: linear-gradient(135deg, #dfdb12, #5BDF12);

Monochromatic scale

Palettes built from #dfdb12

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdb12 in the Color Lab