Skip to content

#fcef21

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

RGB
252, 239, 33
HSL
56°, 97%, 56%
CMYK
0, 5, 87, 1
Luminance
0.8254

Every format

HEX#fcef21
RGBrgb(252, 239, 33)
HSLhsl(56, 97%, 56%)
CMYKcmyk(0%, 5%, 87%, 1%)
LABlab(92.8 -14.7 87.6)
LCHlch(92.8 88.8 99.5)
OKLCHoklch(0.933 0.193 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcef21 on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#fcef21 on black: 17.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green93.7%
Blue12.9%

CMYK percentages

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

Color previews

#fcef21 text on a black background

contrast 17.51:1

Card sample

#fcef21 text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcef21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcef21 in the Color Lab