Skip to content

#fcf921

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

RGB
252, 249, 33
HSL
59°, 97%, 56%
CMYK
0, 1, 87, 1
Luminance
0.8856

Every format

HEX#fcf921
RGBrgb(252, 249, 33)
HSLhsl(59, 97%, 56%)
CMYKcmyk(0%, 1%, 87%, 1%)
LABlab(95.4 -19.6 89.7)
LCHlch(95.4 91.8 102.3)
OKLCHoklch(0.954 0.202 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcf921 on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fcf921 on black: 18.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green97.6%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow86.9%
Key (black)1.2%

Color previews

#fcf921 text on a black background

contrast 18.71:1

Card sample

#fcf921 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 249, 33, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 249, 33, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcf921;
background: linear-gradient(135deg, #fcf921, #6DFC21);

Monochromatic scale

Palettes built from #fcf921

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf921 in the Color Lab