Skip to content

#ffdf98

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

RGB
255, 223, 152
HSL
41°, 100%, 80%
CMYK
0, 13, 40, 0
Luminance
0.7630

Every format

HEX#ffdf98
RGBrgb(255, 223, 152)
HSLhsl(41, 100%, 80%)
CMYKcmyk(0%, 13%, 40%, 0%)
LABlab(90.0 1.6 38.9)
LCHlch(90.0 38.9 87.6)
OKLCHoklch(0.914 0.096 86.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green87.5%
Blue59.6%

CMYK percentages

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

Color previews

#ffdf98 text on a black background

contrast 16.26:1

Card sample

#ffdf98 text on a white background

contrast 1.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ffdf98

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ffdf98 in the Color Lab