Skip to content

#ddfb02

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

RGB
221, 251, 2
HSL
67°, 98%, 50%
CMYK
12, 0, 99, 2
Luminance
0.8437

Every format

HEX#ddfb02
RGBrgb(221, 251, 2)
HSLhsl(67, 98%, 50%)
CMYKcmyk(12%, 0%, 99%, 2%)
LABlab(93.6 -33.5 90.6)
LCHlch(93.6 96.6 110.3)
OKLCHoklch(0.934 0.217 118.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddfb02 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#ddfb02 on black: 17.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green98.4%
Blue0.8%

CMYK percentages

Cyan12.0%
Magenta0.0%
Yellow99.2%
Key (black)1.6%

Color previews

#ddfb02 text on a black background

contrast 17.87:1

Card sample

#ddfb02 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 251, 2, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 251, 2, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddfb02;
background: linear-gradient(135deg, #ddfb02, #37FB02);

Monochromatic scale

Palettes built from #ddfb02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddfb02 in the Color Lab