Skip to content

#fdf40e

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

RGB
253, 244, 14
HSL
58°, 98%, 52%
CMYK
0, 4, 95, 1
Luminance
0.8562

Every format

HEX#fdf40e
RGBrgb(253, 244, 14)
HSLhsl(58, 98%, 52%)
CMYKcmyk(0%, 4%, 95%, 1%)
LABlab(94.2 -17.0 91.2)
LCHlch(94.2 92.8 100.6)
OKLCHoklch(0.944 0.201 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green95.7%
Blue5.5%

CMYK percentages

Cyan0.0%
Magenta3.6%
Yellow94.5%
Key (black)0.8%

Color previews

#fdf40e text on a black background

contrast 18.12:1

Card sample

#fdf40e text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf40e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf40e in the Color Lab