Skip to content

#fdf52e

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

RGB
253, 245, 46
HSL
58°, 98%, 59%
CMYK
0, 3, 82, 1
Luminance
0.8638

Every format

HEX#fdf52e
RGBrgb(253, 245, 46)
HSLhsl(58, 98%, 59%)
CMYKcmyk(0%, 3%, 82%, 1%)
LABlab(94.5 -16.9 86.3)
LCHlch(94.5 88.0 101.1)
OKLCHoklch(0.947 0.194 107.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fdf52e on white: 1.15:1
AA ✗ fail · AA-large · AAA
Aa
#fdf52e on black: 18.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.2%
Green96.1%
Blue18.0%

CMYK percentages

Cyan0.0%
Magenta3.2%
Yellow81.8%
Key (black)0.8%

Color previews

#fdf52e text on a black background

contrast 18.28:1

Card sample

#fdf52e text on a white background

contrast 1.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf52e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf52e in the Color Lab