Skip to content

#dfcc2c

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

RGB
223, 204, 44
HSL
54°, 74%, 52%
CMYK
0, 9, 80, 13
Luminance
0.5906

Every format

HEX#dfcc2c
RGBrgb(223, 204, 44)
HSLhsl(54, 74%, 52%)
CMYKcmyk(0%, 9%, 80%, 13%)
LABlab(81.3 -9.3 74.6)
LCHlch(81.3 75.2 97.1)
OKLCHoklch(0.836 0.165 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfcc2c on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#dfcc2c on black: 12.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green80.0%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta8.5%
Yellow80.3%
Key (black)12.5%

Color previews

#dfcc2c text on a black background

contrast 12.81:1

Card sample

#dfcc2c text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcc2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcc2c in the Color Lab