Skip to content

#dfcc42

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

RGB
223, 204, 66
HSL
53°, 71%, 57%
CMYK
0, 9, 70, 13
Luminance
0.5927

Every format

HEX#dfcc42
RGBrgb(223, 204, 66)
HSLhsl(53, 71%, 57%)
CMYKcmyk(0%, 9%, 70%, 13%)
LABlab(81.4 -8.4 67.5)
LCHlch(81.4 68.0 97.1)
OKLCHoklch(0.837 0.153 101.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green80.0%
Blue25.9%

CMYK percentages

Cyan0.0%
Magenta8.5%
Yellow70.4%
Key (black)12.5%

Color previews

#dfcc42 text on a black background

contrast 12.85:1

Card sample

#dfcc42 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcc42

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcc42 in the Color Lab