Skip to content

#fcf049

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

RGB
252, 240, 73
HSL
56°, 97%, 64%
CMYK
0, 5, 71, 1
Luminance
0.8350

Every format

HEX#fcf049
RGBrgb(252, 240, 73)
HSLhsl(56, 97%, 64%)
CMYKcmyk(0%, 5%, 71%, 1%)
LABlab(93.2 -14.0 77.4)
LCHlch(93.2 78.6 100.2)
OKLCHoklch(0.937 0.177 105.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green94.1%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta4.8%
Yellow71.0%
Key (black)1.2%

Color previews

#fcf049 text on a black background

contrast 17.70:1

Card sample

#fcf049 text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcf049

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcf049 in the Color Lab