Skip to content

#fdf02e

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

RGB
253, 240, 46
HSL
56°, 98%, 59%
CMYK
0, 5, 82, 1
Luminance
0.8340

Every format

HEX#fdf02e
RGBrgb(253, 240, 46)
HSLhsl(56, 98%, 59%)
CMYKcmyk(0%, 5%, 82%, 1%)
LABlab(93.2 -14.5 85.2)
LCHlch(93.2 86.5 99.7)
OKLCHoklch(0.936 0.190 105.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf02e on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#fdf02e on black: 17.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green94.1%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta5.1%
Yellow81.8%
Key (black)0.8%

Color previews

#fdf02e text on a black background

contrast 17.68:1

Card sample

#fdf02e text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf02e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf02e in the Color Lab