Skip to content

#fdf17c

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

RGB
253, 241, 124
HSL
54°, 97%, 74%
CMYK
0, 5, 51, 1
Luminance
0.8525

Every format

HEX#fdf17c
RGBrgb(253, 241, 124)
HSLhsl(54, 97%, 74%)
CMYKcmyk(0%, 5%, 51%, 1%)
LABlab(94.0 -10.8 57.3)
LCHlch(94.0 58.3 100.7)
OKLCHoklch(0.945 0.139 103.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.5%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow51.0%
Key (black)0.8%

Color previews

#fdf17c text on a black background

contrast 18.05:1

Card sample

#fdf17c text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf17c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf17c in the Color Lab