Skip to content

#ffdf80

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

RGB
255, 223, 128
HSL
45°, 100%, 75%
CMYK
0, 13, 50, 0
Luminance
0.7559

Every format

HEX#ffdf80
RGBrgb(255, 223, 128)
HSLhsl(45, 100%, 75%)
CMYKcmyk(0%, 13%, 50%, 0%)
LABlab(89.7 -0.7 50.3)
LCHlch(89.7 50.3 90.8)
OKLCHoklch(0.911 0.120 91.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow49.8%
Key (black)0.0%

Color previews

#ffdf80 text on a black background

contrast 16.12:1

Card sample

#ffdf80 text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf80

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf80 in the Color Lab