Skip to content

#fdfc40

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

RGB
253, 252, 64
HSL
60°, 98%, 62%
CMYK
0, 0, 75, 1
Luminance
0.9087

Every format

HEX#fdfc40
RGBrgb(253, 252, 64)
HSLhsl(60, 98%, 62%)
CMYKcmyk(0%, 0%, 75%, 1%)
LABlab(96.4 -19.7 83.2)
LCHlch(96.4 85.5 103.3)
OKLCHoklch(0.962 0.193 109.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdfc40 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fdfc40 on black: 19.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green98.8%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow74.7%
Key (black)0.8%

Color previews

#fdfc40 text on a black background

contrast 19.17:1

Card sample

#fdfc40 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(253, 252, 64, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(253, 252, 64, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fdfc40;
background: linear-gradient(135deg, #fdfc40, #80FD40);

Monochromatic scale

Palettes built from #fdfc40

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdfc40 in the Color Lab