Skip to content

#fdf20d

a balanced, electric yellow · cool · closest name: yellow

RGB
253, 242, 13
HSL
57°, 98%, 52%
CMYK
0, 4, 95, 1
Luminance
0.8442

Every format

HEX#fdf20d
RGBrgb(253, 242, 13)
HSLhsl(57, 98%, 52%)
CMYKcmyk(0%, 4%, 95%, 1%)
LABlab(93.6 -16.1 90.9)
LCHlch(93.6 92.3 100.0)
OKLCHoklch(0.940 0.199 106.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf20d on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fdf20d on black: 17.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.9%
Blue5.1%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow94.9%
Key (black)0.8%

Color previews

#fdf20d text on a black background

contrast 17.88:1

Card sample

#fdf20d text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 242, 13, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 242, 13, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdf20d;
background: linear-gradient(135deg, #fdf20d, #68FD0D);

Monochromatic scale

Palettes built from #fdf20d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf20d in the Color Lab