Skip to content

#fdf802

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

RGB
253, 248, 2
HSL
59°, 98%, 50%
CMYK
0, 2, 99, 1
Luminance
0.8802

Every format

HEX#fdf802
RGBrgb(253, 248, 2)
HSLhsl(59, 98%, 50%)
CMYKcmyk(0%, 2%, 99%, 1%)
LABlab(95.2 -19.0 92.8)
LCHlch(95.2 94.8 101.6)
OKLCHoklch(0.952 0.205 108.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf802 on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#fdf802 on black: 18.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green97.3%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta2.0%
Yellow99.2%
Key (black)0.8%

Color previews

#fdf802 text on a black background

contrast 18.60:1

Card sample

#fdf802 text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf802

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf802 in the Color Lab