Skip to content

#fefcd2

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

RGB
254, 252, 210
HSL
57°, 96%, 91%
CMYK
0, 1, 17, 0
Luminance
0.9534

Every format

HEX#fefcd2
RGBrgb(254, 252, 210)
HSLhsl(57, 96%, 91%)
CMYKcmyk(0%, 1%, 17%, 0%)
LABlab(98.2 -6.1 20.4)
LCHlch(98.2 21.3 106.5)
OKLCHoklch(0.982 0.054 105.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green98.8%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow17.3%
Key (black)0.4%

Color previews

#fefcd2 text on a black background

contrast 20.07:1

Card sample

#fefcd2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefcd2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefcd2 in the Color Lab