Skip to content

#fefdc2

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

RGB
254, 253, 194
HSL
59°, 97%, 88%
CMYK
0, 0, 24, 0
Luminance
0.9522

Every format

HEX#fefdc2
RGBrgb(254, 253, 194)
HSLhsl(59, 97%, 88%)
CMYKcmyk(0%, 0%, 24%, 0%)
LABlab(98.1 -8.8 28.4)
LCHlch(98.1 29.8 107.2)
OKLCHoklch(0.981 0.075 106.9)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green99.2%
Blue76.1%

CMYK percentages

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

Color previews

#fefdc2 text on a black background

contrast 20.04:1

Card sample

#fefdc2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefdc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefdc2 in the Color Lab