Skip to content

#dfdf47

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

RGB
223, 223, 71
HSL
60°, 70%, 58%
CMYK
0, 0, 68, 13
Luminance
0.6892

Every format

HEX#dfdf47
RGBrgb(223, 223, 71)
HSLhsl(60, 70%, 58%)
CMYKcmyk(0%, 0%, 68%, 13%)
LABlab(86.5 -17.7 70.7)
LCHlch(86.5 72.8 104.0)
OKLCHoklch(0.877 0.167 109.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf47 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf47 on black: 14.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue27.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow68.2%
Key (black)12.5%

Color previews

#dfdf47 text on a black background

contrast 14.78:1

Card sample

#dfdf47 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf47

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf47 in the Color Lab