Skip to content

#dfdf2f

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

RGB
223, 223, 47
HSL
60°, 73%, 53%
CMYK
0, 0, 79, 13
Luminance
0.6867

Every format

HEX#dfdf2f
RGBrgb(223, 223, 47)
HSLhsl(60, 73%, 53%)
CMYKcmyk(0%, 0%, 79%, 13%)
LABlab(86.3 -18.6 78.2)
LCHlch(86.3 80.3 103.4)
OKLCHoklch(0.876 0.180 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow78.9%
Key (black)12.5%

Color previews

#dfdf2f text on a black background

contrast 14.73:1

Card sample

#dfdf2f text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf2f in the Color Lab