Skip to content

#ddf151

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

RGB
221, 241, 81
HSL
68°, 85%, 63%
CMYK
8, 0, 66, 6
Luminance
0.7888

Every format

HEX#ddf151
RGBrgb(221, 241, 81)
HSLhsl(68, 85%, 63%)
CMYKcmyk(8%, 0%, 66%, 6%)
LABlab(91.2 -26.6 71.7)
LCHlch(91.2 76.4 110.3)
OKLCHoklch(0.915 0.180 116.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.7%
Green94.5%
Blue31.8%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow66.4%
Key (black)5.5%

Color previews

#ddf151 text on a black background

contrast 16.78:1

Card sample

#ddf151 text on a white background

contrast 1.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(221, 241, 81, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(221, 241, 81, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ddf151;
background: linear-gradient(135deg, #ddf151, #72F151);

Monochromatic scale

Palettes built from #ddf151

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf151 in the Color Lab