Skip to content

#dff20c

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

RGB
223, 242, 12
HSL
65°, 91%, 50%
CMYK
8, 0, 95, 5
Luminance
0.7922

Every format

HEX#dff20c
RGBrgb(223, 242, 12)
HSLhsl(65, 91%, 50%)
CMYKcmyk(8%, 0%, 95%, 5%)
LABlab(91.3 -28.4 88.2)
LCHlch(91.3 92.7 107.9)
OKLCHoklch(0.916 0.207 115.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#dff20c on white: 1.25:1
AA ✗ fail · AA-large · AAA
Aa
#dff20c on black: 16.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red87.5%
Green94.9%
Blue4.7%

CMYK percentages

Cyan7.9%
Magenta0.0%
Yellow95.0%
Key (black)5.1%

Color previews

#dff20c text on a black background

contrast 16.84:1

Card sample

#dff20c text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #dff20c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #dff20c in the Color Lab