Skip to content

#dfd12d

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

RGB
223, 209, 45
HSL
55°, 74%, 53%
CMYK
0, 6, 80, 13
Luminance
0.6148

Every format

HEX#dfd12d
RGBrgb(223, 209, 45)
HSLhsl(55, 74%, 53%)
CMYKcmyk(0%, 6%, 80%, 13%)
LABlab(82.6 -11.8 75.5)
LCHlch(82.6 76.4 98.9)
OKLCHoklch(0.846 0.168 104.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green82.0%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta6.3%
Yellow79.8%
Key (black)12.5%

Color previews

#dfd12d text on a black background

contrast 13.30:1

Card sample

#dfd12d text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd12d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd12d in the Color Lab