Skip to content

#dfdf2d

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

RGB
223, 223, 45
HSL
60°, 74%, 53%
CMYK
0, 0, 80, 13
Luminance
0.6865

Every format

HEX#dfdf2d
RGBrgb(223, 223, 45)
HSLhsl(60, 74%, 53%)
CMYKcmyk(0%, 0%, 80%, 13%)
LABlab(86.3 -18.7 78.7)
LCHlch(86.3 80.9 103.4)
OKLCHoklch(0.876 0.180 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf2d on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf2d on black: 14.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue17.6%

CMYK percentages

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

Color previews

#dfdf2d text on a black background

contrast 14.73:1

Card sample

#dfdf2d text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf2d in the Color Lab