Skip to content

#dfdb51

a balanced, vivid yellow · cool · closest name: khaki

RGB
223, 219, 81
HSL
58°, 69%, 60%
CMYK
0, 2, 64, 13
Luminance
0.6695

Every format

HEX#dfdb51
RGBrgb(223, 219, 81)
HSLhsl(58, 69%, 60%)
CMYKcmyk(0%, 2%, 64%, 13%)
LABlab(85.5 -15.1 65.8)
LCHlch(85.5 67.5 103.0)
OKLCHoklch(0.870 0.156 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdb51 on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#dfdb51 on black: 14.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.9%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta1.8%
Yellow63.7%
Key (black)12.5%

Color previews

#dfdb51 text on a black background

contrast 14.39:1

Card sample

#dfdb51 text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdb51

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdb51 in the Color Lab