Skip to content

#fcef1e

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

RGB
252, 239, 30
HSL
57°, 97%, 55%
CMYK
0, 5, 88, 1
Luminance
0.8252

Every format

HEX#fcef1e
RGBrgb(252, 239, 30)
HSLhsl(57, 97%, 55%)
CMYKcmyk(0%, 5%, 88%, 1%)
LABlab(92.8 -14.8 88.1)
LCHlch(92.8 89.3 99.5)
OKLCHoklch(0.933 0.194 105.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red98.8%
Green93.7%
Blue11.8%

CMYK percentages

Cyan0.0%
Magenta5.2%
Yellow88.1%
Key (black)1.2%

Color previews

#fcef1e text on a black background

contrast 17.50:1

Card sample

#fcef1e text on a white background

contrast 1.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fcef1e

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fcef1e in the Color Lab