Skip to content

#fefaf2

a pale, electric yellow · warm · closest name: ivory

RGB
254, 250, 242
HSL
40°, 86%, 97%
CMYK
0, 2, 5, 0
Luminance
0.9585

Every format

HEX#fefaf2
RGBrgb(254, 250, 242)
HSLhsl(40, 86%, 97%)
CMYKcmyk(0%, 2%, 5%, 0%)
LABlab(98.4 -0.0 4.3)
LCHlch(98.4 4.3 90.5)
OKLCHoklch(0.986 0.011 84.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefaf2 on white: 1.04:1
AA ✗ fail · AA-large · AAA
Aa
#fefaf2 on black: 20.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green98.0%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta1.6%
Yellow4.7%
Key (black)0.4%

Color previews

#fefaf2 text on a black background

contrast 20.17:1

Card sample

#fefaf2 text on a white background

contrast 1.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefaf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefaf2 in the Color Lab