Skip to content

#fdef2f

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

RGB
253, 239, 47
HSL
56°, 98%, 59%
CMYK
0, 6, 81, 1
Luminance
0.8282

Every format

HEX#fdef2f
RGBrgb(253, 239, 47)
HSLhsl(56, 98%, 59%)
CMYKcmyk(0%, 6%, 81%, 1%)
LABlab(92.9 -14.0 84.8)
LCHlch(92.9 85.9 99.4)
OKLCHoklch(0.934 0.189 104.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green93.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta5.5%
Yellow81.4%
Key (black)0.8%

Color previews

#fdef2f text on a black background

contrast 17.56:1

Card sample

#fdef2f text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdef2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdef2f in the Color Lab