Skip to content

#fffc02

a balanced, electric yellow · cool · “yellow”

RGB
255, 252, 2
HSL
59°, 100%, 50%
CMYK
0, 1, 99, 0
Luminance
0.9089

Every format

HEX#fffc02
RGBrgb(255, 252, 2)
HSLhsl(59, 100%, 50%)
CMYKcmyk(0%, 1%, 99%, 0%)
LABlab(96.4 -20.1 93.8)
LCHlch(96.4 95.9 102.1)
OKLCHoklch(0.962 0.208 108.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffc02 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fffc02 on black: 19.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green98.8%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow99.2%
Key (black)0.0%

Color previews

#fffc02 text on a black background

contrast 19.18:1

Card sample

#fffc02 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffc02

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffc02 in the Color Lab