Skip to content

#fcdc2f

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

RGB
252, 220, 47
HSL
51°, 97%, 59%
CMYK
0, 13, 81, 1
Luminance
0.7209

Every format

HEX#fcdc2f
RGBrgb(252, 220, 47)
HSLhsl(51, 97%, 59%)
CMYKcmyk(0%, 13%, 81%, 1%)
LABlab(88.0 -5.0 80.6)
LCHlch(88.0 80.7 93.6)
OKLCHoklch(0.895 0.175 97.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcdc2f on white: 1.36:1
AA ✗ fail · AA-large · AAA
Aa
#fcdc2f on black: 15.42:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green86.3%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta12.7%
Yellow81.3%
Key (black)1.2%

Color previews

#fcdc2f text on a black background

contrast 15.42:1

Card sample

#fcdc2f text on a white background

contrast 1.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdc2f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdc2f in the Color Lab