Skip to content

#fdf97f

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

RGB
253, 249, 127
HSL
58°, 97%, 75%
CMYK
0, 2, 50, 1
Luminance
0.9017

Every format

HEX#fdf97f
RGBrgb(253, 249, 127)
HSLhsl(58, 97%, 75%)
CMYKcmyk(0%, 2%, 50%, 1%)
LABlab(96.1 -14.5 58.4)
LCHlch(96.1 60.2 103.9)
OKLCHoklch(0.961 0.144 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf97f on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fdf97f on black: 19.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green97.6%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow49.8%
Key (black)0.8%

Color previews

#fdf97f text on a black background

contrast 19.03:1

Card sample

#fdf97f text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf97f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf97f in the Color Lab