Skip to content

#fefcf0

a pale, electric yellow · cool · “ivory”

RGB
254, 252, 240
HSL
51°, 88%, 97%
CMYK
0, 1, 6, 0
Luminance
0.9698

Every format

HEX#fefcf0
RGBrgb(254, 252, 240)
HSLhsl(51, 88%, 97%)
CMYKcmyk(0%, 1%, 6%, 0%)
LABlab(98.8 -1.4 6.0)
LCHlch(98.8 6.1 103.0)
OKLCHoklch(0.989 0.016 99.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefcf0 on white: 1.03:1
AA ✗ fail · AA-large · AAA
Aa
#fefcf0 on black: 20.40:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green98.8%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta0.8%
Yellow5.5%
Key (black)0.4%

Color previews

#fefcf0 text on a black background

contrast 20.40:1

Card sample

#fefcf0 text on a white background

contrast 1.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefcf0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefcf0 in the Color Lab