Skip to content

#fdf47c

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

RGB
253, 244, 124
HSL
56°, 97%, 74%
CMYK
0, 4, 51, 1
Luminance
0.8704

Every format

HEX#fdf47c
RGBrgb(253, 244, 124)
HSLhsl(56, 97%, 74%)
CMYKcmyk(0%, 4%, 51%, 1%)
LABlab(94.8 -12.3 58.2)
LCHlch(94.8 59.5 101.9)
OKLCHoklch(0.951 0.142 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green95.7%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta3.6%
Yellow51.0%
Key (black)0.8%

Color previews

#fdf47c text on a black background

contrast 18.41:1

Card sample

#fdf47c text on a white background

contrast 1.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf47c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf47c in the Color Lab