Skip to content

#dfdc28

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

RGB
223, 220, 40
HSL
59°, 74%, 52%
CMYK
0, 1, 82, 13
Luminance
0.6703

Every format

HEX#dfdc28
RGBrgb(223, 220, 40)
HSLhsl(59, 74%, 52%)
CMYKcmyk(0%, 1%, 82%, 13%)
LABlab(85.5 -17.4 79.2)
LCHlch(85.5 81.1 102.4)
OKLCHoklch(0.869 0.180 108.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfdc28 on white: 1.46:1
AA ✗ fail · AA-large · AAA
Aa
#dfdc28 on black: 14.41:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green86.3%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta1.3%
Yellow82.1%
Key (black)12.5%

Color previews

#dfdc28 text on a black background

contrast 14.41:1

Card sample

#dfdc28 text on a white background

contrast 1.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfdc28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfdc28 in the Color Lab