Skip to content

#fdf17b

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

RGB
253, 241, 123
HSL
55°, 97%, 74%
CMYK
0, 5, 51, 1
Luminance
0.8522

Every format

HEX#fdf17b
RGBrgb(253, 241, 123)
HSLhsl(55, 97%, 74%)
CMYKcmyk(0%, 5%, 51%, 1%)
LABlab(94.0 -10.9 57.8)
LCHlch(94.0 58.8 100.7)
OKLCHoklch(0.944 0.140 103.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

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

CMYK percentages

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

Color previews

#fdf17b text on a black background

contrast 18.04:1

Card sample

#fdf17b text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf17b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf17b in the Color Lab