Skip to content

#fdf22c

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

RGB
253, 242, 44
HSL
57°, 98%, 58%
CMYK
0, 4, 83, 1
Luminance
0.8457

Every format

HEX#fdf22c
RGBrgb(253, 242, 44)
HSLhsl(57, 98%, 58%)
CMYKcmyk(0%, 4%, 83%, 1%)
LABlab(93.7 -15.5 86.1)
LCHlch(93.7 87.5 100.2)
OKLCHoklch(0.940 0.192 106.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.2%
Green94.9%
Blue17.3%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow82.6%
Key (black)0.8%

Color previews

#fdf22c text on a black background

contrast 17.91:1

Card sample

#fdf22c text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fdf22c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fdf22c in the Color Lab