Skip to content

#dfcd2f

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

RGB
223, 205, 47
HSL
54°, 73%, 53%
CMYK
0, 8, 79, 13
Luminance
0.5956

Every format

HEX#dfcd2f
RGBrgb(223, 205, 47)
HSLhsl(54, 73%, 53%)
CMYKcmyk(0%, 8%, 79%, 13%)
LABlab(81.6 -9.7 74.0)
LCHlch(81.6 74.6 97.5)
OKLCHoklch(0.838 0.164 102.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfcd2f on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#dfcd2f on black: 12.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green80.4%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta8.1%
Yellow78.9%
Key (black)12.5%

Color previews

#dfcd2f text on a black background

contrast 12.91:1

Card sample

#dfcd2f text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcd2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcd2f in the Color Lab