Skip to content

#dfdf51

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

RGB
223, 223, 81
HSL
60°, 69%, 60%
CMYK
0, 0, 64, 13
Luminance
0.6906

Every format

HEX#dfdf51
RGBrgb(223, 223, 81)
HSLhsl(60, 69%, 60%)
CMYKcmyk(0%, 0%, 64%, 13%)
LABlab(86.5 -17.1 66.9)
LCHlch(86.5 69.1 104.3)
OKLCHoklch(0.878 0.160 109.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf51 on white: 1.42:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf51 on black: 14.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue31.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow63.7%
Key (black)12.5%

Color previews

#dfdf51 text on a black background

contrast 14.81:1

Card sample

#dfdf51 text on a white background

contrast 1.42:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf51

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf51 in the Color Lab