Skip to content

#fdf221

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

RGB
253, 242, 33
HSL
57°, 98%, 56%
CMYK
0, 4, 87, 1
Luminance
0.8450

Every format

HEX#fdf221
RGBrgb(253, 242, 33)
HSLhsl(57, 98%, 56%)
CMYKcmyk(0%, 4%, 87%, 1%)
LABlab(93.7 -15.8 88.3)
LCHlch(93.7 89.7 100.1)
OKLCHoklch(0.940 0.196 106.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow87.0%
Key (black)0.8%

Color previews

#fdf221 text on a black background

contrast 17.90:1

Card sample

#fdf221 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf221

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf221 in the Color Lab