Skip to content

#dfd12b

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

RGB
223, 209, 43
HSL
55°, 74%, 52%
CMYK
0, 6, 81, 13
Luminance
0.6146

Every format

HEX#dfd12b
RGBrgb(223, 209, 43)
HSLhsl(55, 74%, 52%)
CMYKcmyk(0%, 6%, 81%, 13%)
LABlab(82.6 -11.8 76.0)
LCHlch(82.6 76.9 98.9)
OKLCHoklch(0.846 0.169 104.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green82.0%
Blue16.9%

CMYK percentages

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

Color previews

#dfd12b text on a black background

contrast 13.29:1

Card sample

#dfd12b text on a white background

contrast 1.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfd12b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd12b in the Color Lab