Skip to content

#ffdf9b

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

RGB
255, 223, 155
HSL
41°, 100%, 80%
CMYK
0, 13, 39, 0
Luminance
0.7640

Every format

HEX#ffdf9b
RGBrgb(255, 223, 155)
HSLhsl(41, 100%, 80%)
CMYKcmyk(0%, 13%, 39%, 0%)
LABlab(90.0 1.9 37.4)
LCHlch(90.0 37.4 87.0)
OKLCHoklch(0.915 0.093 85.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue60.8%

CMYK percentages

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

Color previews

#ffdf9b text on a black background

contrast 16.28:1

Card sample

#ffdf9b text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf9b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf9b in the Color Lab