Skip to content

#ddfb0c

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

RGB
221, 251, 12
HSL
68°, 97%, 52%
CMYK
12, 0, 95, 2
Luminance
0.8439

Every format

HEX#ddfb0c
RGBrgb(221, 251, 12)
HSLhsl(68, 97%, 52%)
CMYKcmyk(12%, 0%, 95%, 2%)
LABlab(93.6 -33.4 89.9)
LCHlch(93.6 95.9 110.4)
OKLCHoklch(0.934 0.216 118.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.7%
Green98.4%
Blue4.7%

CMYK percentages

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

Color previews

#ddfb0c text on a black background

contrast 17.88:1

Card sample

#ddfb0c text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddfb0c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddfb0c in the Color Lab