Skip to content

#dfdf28

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

RGB
223, 223, 40
HSL
60°, 74%, 52%
CMYK
0, 0, 82, 13
Luminance
0.6862

Every format

HEX#dfdf28
RGBrgb(223, 223, 40)
HSLhsl(60, 74%, 52%)
CMYKcmyk(0%, 0%, 82%, 13%)
LABlab(86.3 -18.9 79.9)
LCHlch(86.3 82.1 103.3)
OKLCHoklch(0.876 0.182 109.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green87.5%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow82.1%
Key (black)12.5%

Color previews

#dfdf28 text on a black background

contrast 14.72:1

Card sample

#dfdf28 text on a white background

contrast 1.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdf28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdf28 in the Color Lab