Skip to content

#f5df97

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

RGB
245, 223, 151
HSL
46°, 83%, 78%
CMYK
0, 9, 38, 4
Luminance
0.7442

Every format

HEX#f5df97
RGBrgb(245, 223, 151)
HSLhsl(46, 83%, 78%)
CMYKcmyk(0%, 9%, 38%, 4%)
LABlab(89.1 -2.4 38.0)
LCHlch(89.1 38.1 93.6)
OKLCHoklch(0.905 0.094 93.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f5df97 on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#f5df97 on black: 15.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red96.1%
Green87.5%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta9.0%
Yellow38.4%
Key (black)3.9%

Color previews

#f5df97 text on a black background

contrast 15.88:1

Card sample

#f5df97 text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f5df97

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f5df97 in the Color Lab