Skip to content

#dfdf22

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

RGB
223, 223, 34
HSL
60°, 75%, 50%
CMYK
0, 0, 85, 13
Luminance
0.6858

Every format

HEX#dfdf22
RGBrgb(223, 223, 34)
HSLhsl(60, 75%, 50%)
CMYKcmyk(0%, 0%, 85%, 13%)
LABlab(86.3 -19.0 81.2)
LCHlch(86.3 83.4 103.2)
OKLCHoklch(0.875 0.184 109.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow84.8%
Key (black)12.5%

Color previews

#dfdf22 text on a black background

contrast 14.72:1

Card sample

#dfdf22 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf22

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf22 in the Color Lab