Skip to content

#dfcc40

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

RGB
223, 204, 64
HSL
53°, 71%, 56%
CMYK
0, 9, 71, 13
Luminance
0.5924

Every format

HEX#dfcc40
RGBrgb(223, 204, 64)
HSLhsl(53, 71%, 56%)
CMYKcmyk(0%, 9%, 71%, 13%)
LABlab(81.4 -8.5 68.3)
LCHlch(81.4 68.8 97.1)
OKLCHoklch(0.837 0.154 101.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green80.0%
Blue25.1%

CMYK percentages

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

Color previews

#dfcc40 text on a black background

contrast 12.85:1

Card sample

#dfcc40 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfcc40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfcc40 in the Color Lab