Skip to content

#dfc921

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

RGB
223, 201, 33
HSL
53°, 75%, 50%
CMYK
0, 10, 85, 13
Luminance
0.5757

Every format

HEX#dfc921
RGBrgb(223, 201, 33)
HSLhsl(53, 75%, 50%)
CMYKcmyk(0%, 10%, 85%, 13%)
LABlab(80.5 -8.1 76.7)
LCHlch(80.5 77.1 96.0)
OKLCHoklch(0.829 0.167 101.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfc921 on white: 1.68:1
AA ✗ fail · AA-large · AAA
Aa
#dfc921 on black: 12.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green78.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta9.9%
Yellow85.2%
Key (black)12.5%

Color previews

#dfc921 text on a black background

contrast 12.51:1

Card sample

#dfc921 text on a white background

contrast 1.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfc921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfc921 in the Color Lab