Skip to content

#fdf302

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

RGB
253, 243, 2
HSL
58°, 98%, 50%
CMYK
0, 4, 99, 1
Luminance
0.8499

Every format

HEX#fdf302
RGBrgb(253, 243, 2)
HSLhsl(58, 98%, 50%)
CMYKcmyk(0%, 4%, 99%, 1%)
LABlab(93.9 -16.6 91.9)
LCHlch(93.9 93.4 100.3)
OKLCHoklch(0.942 0.201 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf302 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#fdf302 on black: 18.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green95.3%
Blue0.8%

CMYK percentages

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

Color previews

#fdf302 text on a black background

contrast 18.00:1

Card sample

#fdf302 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf302

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf302 in the Color Lab