Skip to content

#fdef21

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

RGB
253, 239, 33
HSL
56°, 98%, 56%
CMYK
0, 6, 87, 1
Luminance
0.8273

Every format

HEX#fdef21
RGBrgb(253, 239, 33)
HSLhsl(56, 98%, 56%)
CMYKcmyk(0%, 6%, 87%, 1%)
LABlab(92.9 -14.3 87.7)
LCHlch(92.9 88.9 99.3)
OKLCHoklch(0.934 0.193 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdef21 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#fdef21 on black: 17.55:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green93.7%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow87.0%
Key (black)0.8%

Color previews

#fdef21 text on a black background

contrast 17.55:1

Card sample

#fdef21 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdef21 in the Color Lab