Skip to content

#dfd220

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

RGB
223, 210, 32
HSL
56°, 75%, 50%
CMYK
0, 6, 86, 13
Luminance
0.6189

Every format

HEX#dfd220
RGBrgb(223, 210, 32)
HSLhsl(56, 75%, 50%)
CMYKcmyk(0%, 6%, 86%, 13%)
LABlab(82.8 -12.6 78.8)
LCHlch(82.8 79.8 99.1)
OKLCHoklch(0.848 0.174 104.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green82.4%
Blue12.5%

CMYK percentages

Cyan0.0%
Magenta5.8%
Yellow85.7%
Key (black)12.5%

Color previews

#dfd220 text on a black background

contrast 13.38:1

Card sample

#dfd220 text on a white background

contrast 1.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd220

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd220 in the Color Lab