Skip to content

#fdf840

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

RGB
253, 248, 64
HSL
58°, 98%, 62%
CMYK
0, 2, 75, 1
Luminance
0.8839

Every format

HEX#fdf840
RGBrgb(253, 248, 64)
HSLhsl(58, 98%, 62%)
CMYKcmyk(0%, 2%, 75%, 1%)
LABlab(95.3 -17.8 82.3)
LCHlch(95.3 84.2 102.2)
OKLCHoklch(0.954 0.189 107.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf840 on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fdf840 on black: 18.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green97.3%
Blue25.1%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow74.7%
Key (black)0.8%

Color previews

#fdf840 text on a black background

contrast 18.68:1

Card sample

#fdf840 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf840

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf840 in the Color Lab