Skip to content

#ffdf97

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

RGB
255, 223, 151
HSL
42°, 100%, 80%
CMYK
0, 13, 41, 0
Luminance
0.7627

Every format

HEX#ffdf97
RGBrgb(255, 223, 151)
HSLhsl(42, 100%, 80%)
CMYKcmyk(0%, 13%, 41%, 0%)
LABlab(90.0 1.5 39.3)
LCHlch(90.0 39.4 87.8)
OKLCHoklch(0.914 0.097 86.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue59.2%

CMYK percentages

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

Color previews

#ffdf97 text on a black background

contrast 16.25:1

Card sample

#ffdf97 text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf97 in the Color Lab