Skip to content

#fdf47f

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

RGB
253, 244, 127
HSL
56°, 97%, 75%
CMYK
0, 4, 50, 1
Luminance
0.8712

Every format

HEX#fdf47f
RGBrgb(253, 244, 127)
HSLhsl(56, 97%, 75%)
CMYKcmyk(0%, 4%, 50%, 1%)
LABlab(94.8 -12.1 56.9)
LCHlch(94.8 58.1 102.0)
OKLCHoklch(0.951 0.139 104.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf47f on white: 1.14:1
AA ✗ fail · AA-large · AAA
Aa
#fdf47f on black: 18.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green95.7%
Blue49.8%

CMYK percentages

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

Color previews

#fdf47f text on a black background

contrast 18.42:1

Card sample

#fdf47f text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf47f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf47f in the Color Lab