Skip to content

#dfd451

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

RGB
223, 212, 81
HSL
55°, 69%, 60%
CMYK
0, 5, 64, 13
Luminance
0.6337

Every format

HEX#dfd451
RGBrgb(223, 212, 81)
HSLhsl(55, 69%, 60%)
CMYKcmyk(0%, 5%, 64%, 13%)
LABlab(83.6 -11.7 63.9)
LCHlch(83.6 65.0 100.3)
OKLCHoklch(0.855 0.150 104.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfd451 on white: 1.54:1
AA ✗ fail · AA-large · AAA
Aa
#dfd451 on black: 13.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green83.1%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta4.9%
Yellow63.7%
Key (black)12.5%

Color previews

#dfd451 text on a black background

contrast 13.67:1

Card sample

#dfd451 text on a white background

contrast 1.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 212, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 212, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfd451;
background: linear-gradient(135deg, #dfd451, #8BDF51);

Monochromatic scale

Palettes built from #dfd451

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfd451 in the Color Lab