Skip to content

#dfd22d

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

RGB
223, 210, 45
HSL
56°, 74%, 53%
CMYK
0, 6, 80, 13
Luminance
0.6197

Every format

HEX#dfd22d
RGBrgb(223, 210, 45)
HSLhsl(56, 74%, 53%)
CMYKcmyk(0%, 6%, 80%, 13%)
LABlab(82.9 -12.3 75.7)
LCHlch(82.9 76.7 99.2)
OKLCHoklch(0.848 0.169 104.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd22d on white: 1.57:1
AA ✗ fail · AA-large · AAA
Aa
#dfd22d on black: 13.39:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green82.4%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow79.8%
Key (black)12.5%

Color previews

#dfd22d text on a black background

contrast 13.39:1

Card sample

#dfd22d text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 210, 45, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 210, 45, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd22d;
background: linear-gradient(135deg, #dfd22d, #75DF2D);

Monochromatic scale

Palettes built from #dfd22d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd22d in the Color Lab