Skip to content

#ffdf88

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

RGB
255, 223, 136
HSL
44°, 100%, 77%
CMYK
0, 13, 47, 0
Luminance
0.7581

Every format

HEX#ffdf88
RGBrgb(255, 223, 136)
HSLhsl(44, 100%, 77%)
CMYKcmyk(0%, 13%, 47%, 0%)
LABlab(89.8 0.0 46.5)
LCHlch(89.8 46.5 90.0)
OKLCHoklch(0.912 0.112 89.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdf88 on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#ffdf88 on black: 16.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.5%
Blue53.3%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow46.7%
Key (black)0.0%

Color previews

#ffdf88 text on a black background

contrast 16.16:1

Card sample

#ffdf88 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(255, 223, 136, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(255, 223, 136, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ffdf88;
background: linear-gradient(135deg, #ffdf88, #D0FF88);

Monochromatic scale

Palettes built from #ffdf88

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf88 in the Color Lab