Skip to content

#dfdb52

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

RGB
223, 219, 82
HSL
58°, 69%, 60%
CMYK
0, 2, 63, 13
Luminance
0.6696

Every format

HEX#dfdb52
RGBrgb(223, 219, 82)
HSLhsl(58, 69%, 60%)
CMYKcmyk(0%, 2%, 63%, 13%)
LABlab(85.5 -15.1 65.4)
LCHlch(85.5 67.2 103.0)
OKLCHoklch(0.870 0.155 107.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green85.9%
Blue32.2%

CMYK percentages

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

Color previews

#dfdb52 text on a black background

contrast 14.39:1

Card sample

#dfdb52 text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdb52

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdb52 in the Color Lab