Skip to content

#fefbf2

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

RGB
254, 251, 242
HSL
45°, 86%, 97%
CMYK
0, 1, 5, 0
Luminance
0.9648

Every format

HEX#fefbf2
RGBrgb(254, 251, 242)
HSLhsl(45, 86%, 97%)
CMYKcmyk(0%, 1%, 5%, 0%)
LABlab(98.6 -0.5 4.7)
LCHlch(98.6 4.7 96.6)
OKLCHoklch(0.988 0.012 91.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green98.4%
Blue94.9%

CMYK percentages

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

Color previews

#fefbf2 text on a black background

contrast 20.30:1

Card sample

#fefbf2 text on a white background

contrast 1.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefbf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefbf2 in the Color Lab