Skip to content

#fcf021

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

RGB
252, 240, 33
HSL
57°, 97%, 56%
CMYK
0, 5, 87, 1
Luminance
0.8313

Every format

HEX#fcf021
RGBrgb(252, 240, 33)
HSLhsl(57, 97%, 56%)
CMYKcmyk(0%, 5%, 87%, 1%)
LABlab(93.1 -15.2 87.8)
LCHlch(93.1 89.1 99.8)
OKLCHoklch(0.935 0.194 105.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcf021 on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#fcf021 on black: 17.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green94.1%
Blue12.9%

CMYK percentages

Cyan0.0%
Magenta4.8%
Yellow86.9%
Key (black)1.2%

Color previews

#fcf021 text on a black background

contrast 17.63:1

Card sample

#fcf021 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcf021

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf021 in the Color Lab