Skip to content

#dfec0c

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

RGB
223, 236, 12
HSL
64°, 90%, 49%
CMYK
6, 0, 95, 8
Luminance
0.7571

Every format

HEX#dfec0c
RGBrgb(223, 236, 12)
HSLhsl(64, 90%, 49%)
CMYKcmyk(6%, 0%, 95%, 8%)
LABlab(89.7 -25.6 87.0)
LCHlch(89.7 90.7 106.4)
OKLCHoklch(0.903 0.201 113.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red87.5%
Green92.5%
Blue4.7%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow94.9%
Key (black)7.5%

Color previews

#dfec0c text on a black background

contrast 16.14:1

Card sample

#dfec0c text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dfec0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dfec0c in the Color Lab