Skip to content

#ddf308

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

RGB
221, 243, 8
HSL
66°, 94%, 49%
CMYK
9, 0, 97, 5
Luminance
0.7949

Every format

HEX#ddf308
RGBrgb(221, 243, 8)
HSLhsl(66, 94%, 49%)
CMYKcmyk(9%, 0%, 97%, 5%)
LABlab(91.5 -29.7 88.6)
LCHlch(91.5 93.4 108.6)
OKLCHoklch(0.916 0.209 116.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red86.7%
Green95.3%
Blue3.1%

CMYK percentages

Cyan9.1%
Magenta0.0%
Yellow96.7%
Key (black)4.7%

Color previews

#ddf308 text on a black background

contrast 16.90:1

Card sample

#ddf308 text on a white background

contrast 1.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ddf308

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ddf308 in the Color Lab