Skip to content

#dfcc2a

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

RGB
223, 204, 42
HSL
54°, 74%, 52%
CMYK
0, 9, 81, 13
Luminance
0.5904

Every format

HEX#dfcc2a
RGBrgb(223, 204, 42)
HSLhsl(54, 74%, 52%)
CMYKcmyk(0%, 9%, 81%, 13%)
LABlab(81.3 -9.4 75.1)
LCHlch(81.3 75.7 97.1)
OKLCHoklch(0.836 0.166 102.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green80.0%
Blue16.5%

CMYK percentages

Cyan0.0%
Magenta8.5%
Yellow81.2%
Key (black)12.5%

Color previews

#dfcc2a text on a black background

contrast 12.81:1

Card sample

#dfcc2a text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcc2a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcc2a in the Color Lab