Skip to content

#dfdf2c

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

RGB
223, 223, 44
HSL
60°, 74%, 52%
CMYK
0, 0, 80, 13
Luminance
0.6865

Every format

HEX#dfdf2c
RGBrgb(223, 223, 44)
HSLhsl(60, 74%, 52%)
CMYKcmyk(0%, 0%, 80%, 13%)
LABlab(86.3 -18.8 78.9)
LCHlch(86.3 81.1 103.4)
OKLCHoklch(0.876 0.181 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow80.3%
Key (black)12.5%

Color previews

#dfdf2c text on a black background

contrast 14.73:1

Card sample

#dfdf2c text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf2c in the Color Lab