Skip to content

#fcdf2d

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

RGB
252, 223, 45
HSL
52°, 97%, 58%
CMYK
0, 12, 82, 1
Luminance
0.7366

Every format

HEX#fcdf2d
RGBrgb(252, 223, 45)
HSLhsl(52, 97%, 58%)
CMYKcmyk(0%, 12%, 82%, 1%)
LABlab(88.8 -6.6 81.7)
LCHlch(88.8 82.0 94.6)
OKLCHoklch(0.901 0.177 99.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcdf2d on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#fcdf2d on black: 15.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green87.5%
Blue17.6%

CMYK percentages

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

Color previews

#fcdf2d text on a black background

contrast 15.73:1

Card sample

#fcdf2d text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcdf2d

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcdf2d in the Color Lab