Skip to content

#dfd52d

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

RGB
223, 213, 45
HSL
57°, 74%, 53%
CMYK
0, 5, 80, 13
Luminance
0.6347

Every format

HEX#dfd52d
RGBrgb(223, 213, 45)
HSLhsl(57, 74%, 53%)
CMYKcmyk(0%, 5%, 80%, 13%)
LABlab(83.7 -13.8 76.4)
LCHlch(83.7 77.6 100.2)
OKLCHoklch(0.855 0.172 105.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd52d on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#dfd52d on black: 13.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green83.5%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta4.5%
Yellow79.8%
Key (black)12.5%

Color previews

#dfd52d text on a black background

contrast 13.69:1

Card sample

#dfd52d text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd52d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd52d in the Color Lab