Skip to content

#dfef1d

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

RGB
223, 239, 29
HSL
65°, 87%, 53%
CMYK
7, 0, 88, 6
Luminance
0.7751

Every format

HEX#dfef1d
RGBrgb(223, 239, 29)
HSLhsl(65, 87%, 53%)
CMYKcmyk(7%, 0%, 88%, 6%)
LABlab(90.6 -26.8 85.5)
LCHlch(90.6 89.6 107.4)
OKLCHoklch(0.909 0.201 114.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfef1d on white: 1.27:1
AA ✗ fail · AA-large · AAA
Aa
#dfef1d on black: 16.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green93.7%
Blue11.4%

CMYK percentages

Cyan6.7%
Magenta0.0%
Yellow87.9%
Key (black)6.3%

Color previews

#dfef1d text on a black background

contrast 16.50:1

Card sample

#dfef1d text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 239, 29, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 239, 29, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfef1d;
background: linear-gradient(135deg, #dfef1d, #53EF1D);

Monochromatic scale

Palettes built from #dfef1d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfef1d in the Color Lab