Skip to content

#ddf302

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

RGB
221, 243, 2
HSL
66°, 98%, 48%
CMYK
9, 0, 99, 5
Luminance
0.7948

Every format

HEX#ddf302
RGBrgb(221, 243, 2)
HSLhsl(66, 98%, 48%)
CMYKcmyk(9%, 0%, 99%, 5%)
LABlab(91.5 -29.8 89.0)
LCHlch(91.5 93.8 108.5)
OKLCHoklch(0.916 0.210 116.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.7%
Green95.3%
Blue0.8%

CMYK percentages

Cyan9.1%
Magenta0.0%
Yellow99.2%
Key (black)4.7%

Color previews

#ddf302 text on a black background

contrast 16.90:1

Card sample

#ddf302 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddf302

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf302 in the Color Lab