Skip to content

#dfef2c

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

RGB
223, 239, 44
HSL
65°, 86%, 56%
CMYK
7, 0, 82, 6
Luminance
0.7760

Every format

HEX#dfef2c
RGBrgb(223, 239, 44)
HSLhsl(65, 86%, 56%)
CMYKcmyk(7%, 0%, 82%, 6%)
LABlab(90.6 -26.4 82.6)
LCHlch(90.6 86.7 107.7)
OKLCHoklch(0.910 0.196 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green93.7%
Blue17.3%

CMYK percentages

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

Color previews

#dfef2c text on a black background

contrast 16.52:1

Card sample

#dfef2c text on a white background

contrast 1.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfef2c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfef2c in the Color Lab