Skip to content

#ffdf9a

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

RGB
255, 223, 154
HSL
41°, 100%, 80%
CMYK
0, 13, 40, 0
Luminance
0.7637

Every format

HEX#ffdf9a
RGBrgb(255, 223, 154)
HSLhsl(41, 100%, 80%)
CMYKcmyk(0%, 13%, 40%, 0%)
LABlab(90.0 1.8 37.9)
LCHlch(90.0 37.9 87.2)
OKLCHoklch(0.915 0.094 85.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ffdf9a on white: 1.29:1
AA ✗ fail · AA-large · AAA
Aa
#ffdf9a on black: 16.27:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green87.5%
Blue60.4%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow39.6%
Key (black)0.0%

Color previews

#ffdf9a text on a black background

contrast 16.27:1

Card sample

#ffdf9a text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf9a

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf9a in the Color Lab