Skip to content

#fffc2f

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

RGB
255, 252, 47
HSL
59°, 100%, 59%
CMYK
0, 1, 82, 0
Luminance
0.9109

Every format

HEX#fffc2f
RGBrgb(255, 252, 47)
HSLhsl(59, 100%, 59%)
CMYKcmyk(0%, 1%, 82%, 0%)
LABlab(96.5 -19.4 87.8)
LCHlch(96.5 89.9 102.5)
OKLCHoklch(0.963 0.199 108.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green98.8%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow81.6%
Key (black)0.0%

Color previews

#fffc2f text on a black background

contrast 19.22:1

Card sample

#fffc2f text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffc2f in the Color Lab