Skip to content

#dfdf21

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

RGB
223, 223, 33
HSL
60°, 75%, 50%
CMYK
0, 0, 85, 13
Luminance
0.6857

Every format

HEX#dfdf21
RGBrgb(223, 223, 33)
HSLhsl(60, 75%, 50%)
CMYKcmyk(0%, 0%, 85%, 13%)
LABlab(86.3 -19.0 81.4)
LCHlch(86.3 83.6 103.2)
OKLCHoklch(0.875 0.185 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdf21 on white: 1.43:1
AA ✗ fail · AA-large · AAA
Aa
#dfdf21 on black: 14.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green87.5%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow85.2%
Key (black)12.5%

Color previews

#dfdf21 text on a black background

contrast 14.71:1

Card sample

#dfdf21 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf21 in the Color Lab