Skip to content

#fcef1f

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

RGB
252, 239, 31
HSL
57°, 97%, 56%
CMYK
0, 5, 88, 1
Luminance
0.8253

Every format

HEX#fcef1f
RGBrgb(252, 239, 31)
HSLhsl(57, 97%, 56%)
CMYKcmyk(0%, 5%, 88%, 1%)
LABlab(92.8 -14.8 87.9)
LCHlch(92.8 89.2 99.5)
OKLCHoklch(0.933 0.194 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fcef1f on white: 1.20:1
AA ✗ fail · AA-large · AAA
Aa
#fcef1f on black: 17.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red98.8%
Green93.7%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta5.2%
Yellow87.7%
Key (black)1.2%

Color previews

#fcef1f text on a black background

contrast 17.51:1

Card sample

#fcef1f text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcef1f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcef1f in the Color Lab