Skip to content

#fefcc2

a pale, electric yellow · cool · closest name: beige

RGB
254, 252, 194
HSL
58°, 97%, 88%
CMYK
0, 1, 24, 0
Luminance
0.9459

Every format

HEX#fefcc2
RGBrgb(254, 252, 194)
HSLhsl(58, 97%, 88%)
CMYKcmyk(0%, 1%, 24%, 0%)
LABlab(97.9 -8.3 28.1)
LCHlch(97.9 29.3 106.5)
OKLCHoklch(0.979 0.074 106.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefcc2 on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#fefcc2 on black: 19.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green98.8%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow23.6%
Key (black)0.4%

Color previews

#fefcc2 text on a black background

contrast 19.92:1

Card sample

#fefcc2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefcc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefcc2 in the Color Lab