Skip to content

#ddf221

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

RGB
221, 242, 33
HSL
66°, 89%, 54%
CMYK
9, 0, 86, 5
Luminance
0.7899

Every format

HEX#ddf221
RGBrgb(221, 242, 33)
HSLhsl(66, 89%, 54%)
CMYKcmyk(9%, 0%, 86%, 5%)
LABlab(91.2 -28.9 85.3)
LCHlch(91.2 90.1 108.7)
OKLCHoklch(0.914 0.203 116.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.7%
Green94.9%
Blue12.9%

CMYK percentages

Cyan8.7%
Magenta0.0%
Yellow86.4%
Key (black)5.1%

Color previews

#ddf221 text on a black background

contrast 16.80:1

Card sample

#ddf221 text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 242, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 242, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddf221;
background: linear-gradient(135deg, #ddf221, #52F221);

Monochromatic scale

Palettes built from #ddf221

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf221 in the Color Lab