Skip to content

#dfec3b

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

RGB
223, 236, 59
HSL
64°, 82%, 58%
CMYK
6, 0, 75, 8
Luminance
0.7599

Every format

HEX#dfec3b
RGBrgb(223, 236, 59)
HSLhsl(64, 82%, 58%)
CMYKcmyk(6%, 0%, 75%, 8%)
LABlab(89.9 -24.5 77.9)
LCHlch(89.9 81.7 107.4)
OKLCHoklch(0.904 0.187 113.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dfec3b on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#dfec3b on black: 16.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green92.5%
Blue23.1%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow75.0%
Key (black)7.5%

Color previews

#dfec3b text on a black background

contrast 16.20:1

Card sample

#dfec3b text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(223, 236, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(223, 236, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #dfec3b;
background: linear-gradient(135deg, #dfec3b, #69EC3B);

Monochromatic scale

Palettes built from #dfec3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfec3b in the Color Lab