Skip to content

#dfd12c

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

RGB
223, 209, 44
HSL
55°, 74%, 52%
CMYK
0, 6, 80, 13
Luminance
0.6147

Every format

HEX#dfd12c
RGBrgb(223, 209, 44)
HSLhsl(55, 74%, 52%)
CMYKcmyk(0%, 6%, 80%, 13%)
LABlab(82.6 -11.8 75.7)
LCHlch(82.6 76.7 98.9)
OKLCHoklch(0.846 0.169 104.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd12c on white: 1.58:1
AA ✗ fail · AA-large · AAA
Aa
#dfd12c on black: 13.29:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green82.0%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow80.3%
Key (black)12.5%

Color previews

#dfd12c text on a black background

contrast 13.29:1

Card sample

#dfd12c text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd12c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd12c in the Color Lab