Skip to content

#fdf17f

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

RGB
253, 241, 127
HSL
54°, 97%, 75%
CMYK
0, 5, 50, 1
Luminance
0.8533

Every format

HEX#fdf17f
RGBrgb(253, 241, 127)
HSLhsl(54, 97%, 75%)
CMYKcmyk(0%, 5%, 50%, 1%)
LABlab(94.0 -10.6 56.0)
LCHlch(94.0 57.0 100.7)
OKLCHoklch(0.945 0.136 103.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf17f on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#fdf17f on black: 18.07:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.5%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow49.8%
Key (black)0.8%

Color previews

#fdf17f text on a black background

contrast 18.07:1

Card sample

#fdf17f text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf17f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf17f in the Color Lab