Skip to content

#fcd40c

a balanced, electric yellow · cool · “gold”

RGB
252, 212, 12
HSL
50°, 98%, 52%
CMYK
0, 16, 95, 1
Luminance
0.6781

Every format

HEX#fcd40c
RGBrgb(252, 212, 12)
HSLhsl(50, 98%, 52%)
CMYKcmyk(0%, 16%, 95%, 1%)
LABlab(85.9 -1.6 85.2)
LCHlch(85.9 85.3 91.1)
OKLCHoklch(0.878 0.179 95.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcd40c on white: 1.44:1
AA ✗ fail · AA-large · AAA
Aa
#fcd40c on black: 14.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green83.1%
Blue4.7%

CMYK percentages

Cyan0.0%
Magenta15.9%
Yellow95.2%
Key (black)1.2%

Color previews

#fcd40c text on a black background

contrast 14.56:1

Card sample

#fcd40c text on a white background

contrast 1.44:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(252, 212, 12, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(252, 212, 12, 0.45);
Border & gradient
Gradient panel
border: 3px solid #fcd40c;
background: linear-gradient(135deg, #fcd40c, #84FC0C);

Monochromatic scale

Palettes built from #fcd40c

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcd40c in the Color Lab