Skip to content

#dfdd2f

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

RGB
223, 221, 47
HSL
59°, 73%, 53%
CMYK
0, 1, 79, 13
Luminance
0.6761

Every format

HEX#dfdd2f
RGBrgb(223, 221, 47)
HSLhsl(59, 73%, 53%)
CMYKcmyk(0%, 1%, 79%, 13%)
LABlab(85.8 -17.7 77.7)
LCHlch(85.8 79.7 102.8)
OKLCHoklch(0.872 0.178 108.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdd2f on white: 1.45:1
AA ✗ fail · AA-large · AAA
Aa
#dfdd2f on black: 14.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green86.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.9%
Yellow78.9%
Key (black)12.5%

Color previews

#dfdd2f text on a black background

contrast 14.52:1

Card sample

#dfdd2f text on a white background

contrast 1.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 221, 47, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 221, 47, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfdd2f;
background: linear-gradient(135deg, #dfdd2f, #6CDF2F);

Monochromatic scale

Palettes built from #dfdd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdd2f in the Color Lab