Skip to content

#ffdf9e

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

RGB
255, 223, 158
HSL
40°, 100%, 81%
CMYK
0, 13, 38, 0
Luminance
0.7650

Every format

HEX#ffdf9e
RGBrgb(255, 223, 158)
HSLhsl(40, 100%, 81%)
CMYKcmyk(0%, 13%, 38%, 0%)
LABlab(90.1 2.3 35.9)
LCHlch(90.1 36.0 86.4)
OKLCHoklch(0.915 0.089 84.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue62.0%

CMYK percentages

Cyan0.0%
Magenta12.5%
Yellow38.0%
Key (black)0.0%

Color previews

#ffdf9e text on a black background

contrast 16.30:1

Card sample

#ffdf9e text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf9e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf9e in the Color Lab