Skip to content

#dfda2f

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

RGB
223, 218, 47
HSL
58°, 73%, 53%
CMYK
0, 2, 79, 13
Luminance
0.6604

Every format

HEX#dfda2f
RGBrgb(223, 218, 47)
HSLhsl(58, 73%, 53%)
CMYKcmyk(0%, 2%, 79%, 13%)
LABlab(85.0 -16.2 77.0)
LCHlch(85.0 78.7 101.9)
OKLCHoklch(0.865 0.175 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfda2f on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#dfda2f on black: 14.21:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green85.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta2.2%
Yellow78.9%
Key (black)12.5%

Color previews

#dfda2f text on a black background

contrast 14.21:1

Card sample

#dfda2f text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfda2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfda2f in the Color Lab