Skip to content

#fcdf28

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

RGB
252, 223, 40
HSL
52°, 97%, 57%
CMYK
0, 12, 84, 1
Luminance
0.7362

Every format

HEX#fcdf28
RGBrgb(252, 223, 40)
HSLhsl(52, 97%, 57%)
CMYKcmyk(0%, 12%, 84%, 1%)
LABlab(88.8 -6.7 82.9)
LCHlch(88.8 83.2 94.6)
OKLCHoklch(0.901 0.179 99.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green87.5%
Blue15.7%

CMYK percentages

Cyan0.0%
Magenta11.5%
Yellow84.1%
Key (black)1.2%

Color previews

#fcdf28 text on a black background

contrast 15.72:1

Card sample

#fcdf28 text on a white background

contrast 1.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf28

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf28 in the Color Lab