Skip to content

#ddf178

a light, electric yellow · cool · closest name: khaki

RGB
221, 241, 120
HSL
70°, 81%, 71%
CMYK
8, 0, 50, 6
Luminance
0.7964

Every format

HEX#ddf178
RGBrgb(221, 241, 120)
HSLhsl(70, 81%, 71%)
CMYKcmyk(8%, 0%, 50%, 6%)
LABlab(91.5 -23.7 55.6)
LCHlch(91.5 60.5 113.1)
OKLCHoklch(0.919 0.148 117.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ddf178 on white: 1.24:1
AA ✗ fail · AA-large · AAA
Aa
#ddf178 on black: 16.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red86.7%
Green94.5%
Blue47.1%

CMYK percentages

Cyan8.3%
Magenta0.0%
Yellow50.2%
Key (black)5.5%

Color previews

#ddf178 text on a black background

contrast 16.93:1

Card sample

#ddf178 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddf178

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf178 in the Color Lab