Skip to content

#fdfb97

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

RGB
253, 251, 151
HSL
59°, 96%, 79%
CMYK
0, 1, 40, 1
Luminance
0.9211

Every format

HEX#fdfb97
RGBrgb(253, 251, 151)
HSLhsl(59, 96%, 79%)
CMYKcmyk(0%, 1%, 40%, 1%)
LABlab(96.9 -13.3 48.1)
LCHlch(96.9 49.9 105.4)
OKLCHoklch(0.968 0.122 107.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdfb97 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#fdfb97 on black: 19.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green98.4%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow40.3%
Key (black)0.8%

Color previews

#fdfb97 text on a black background

contrast 19.42:1

Card sample

#fdfb97 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdfb97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdfb97 in the Color Lab