Skip to content

#fdf42f

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

RGB
253, 244, 47
HSL
57°, 98%, 59%
CMYK
0, 4, 81, 1
Luminance
0.8579

Every format

HEX#fdf42f
RGBrgb(253, 244, 47)
HSLhsl(57, 98%, 59%)
CMYKcmyk(0%, 4%, 81%, 1%)
LABlab(94.2 -16.4 85.9)
LCHlch(94.2 87.4 100.8)
OKLCHoklch(0.945 0.193 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green95.7%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta3.6%
Yellow81.4%
Key (black)0.8%

Color previews

#fdf42f text on a black background

contrast 18.16:1

Card sample

#fdf42f text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf42f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf42f in the Color Lab