Skip to content

#fcdf1f

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

RGB
252, 223, 31
HSL
52°, 97%, 56%
CMYK
0, 12, 88, 1
Luminance
0.7357

Every format

HEX#fcdf1f
RGBrgb(252, 223, 31)
HSLhsl(52, 97%, 56%)
CMYKcmyk(0%, 12%, 88%, 1%)
LABlab(88.7 -6.9 84.7)
LCHlch(88.7 85.0 94.6)
OKLCHoklch(0.900 0.182 99.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcdf1f on white: 1.34:1
AA ✗ fail · AA-large · AAA
Aa
#fcdf1f on black: 15.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green87.5%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta11.5%
Yellow87.7%
Key (black)1.2%

Color previews

#fcdf1f text on a black background

contrast 15.71:1

Card sample

#fcdf1f text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 223, 31, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 223, 31, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcdf1f;
background: linear-gradient(135deg, #fcdf1f, #86FC1F);

Monochromatic scale

Palettes built from #fcdf1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf1f in the Color Lab