Skip to content

#dfef2d

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

RGB
223, 239, 45
HSL
65°, 86%, 56%
CMYK
7, 0, 81, 6
Luminance
0.7761

Every format

HEX#dfef2d
RGBrgb(223, 239, 45)
HSLhsl(65, 86%, 56%)
CMYKcmyk(7%, 0%, 81%, 6%)
LABlab(90.6 -26.4 82.3)
LCHlch(90.6 86.5 107.8)
OKLCHoklch(0.910 0.196 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green93.7%
Blue17.6%

CMYK percentages

Cyan6.7%
Magenta0.0%
Yellow81.2%
Key (black)6.3%

Color previews

#dfef2d text on a black background

contrast 16.52:1

Card sample

#dfef2d text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfef2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfef2d in the Color Lab