Skip to content

#fffc21

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

RGB
255, 252, 33
HSL
59°, 100%, 57%
CMYK
0, 1, 87, 0
Luminance
0.9099

Every format

HEX#fffc21
RGBrgb(255, 252, 33)
HSLhsl(59, 100%, 57%)
CMYKcmyk(0%, 1%, 87%, 0%)
LABlab(96.4 -19.8 90.5)
LCHlch(96.4 92.7 102.3)
OKLCHoklch(0.962 0.203 108.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffc21 on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#fffc21 on black: 19.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green98.8%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow87.1%
Key (black)0.0%

Color previews

#fffc21 text on a black background

contrast 19.20:1

Card sample

#fffc21 text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffc21

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffc21 in the Color Lab