Skip to content

#fffef8

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

RGB
255, 254, 248
HSL
51°, 100%, 99%
CMYK
0, 0, 3, 0
Luminance
0.9892

Every format

HEX#fffef8
RGBrgb(255, 254, 248)
HSLhsl(51, 100%, 99%)
CMYKcmyk(0%, 0%, 3%, 0%)
LABlab(99.6 -0.7 3.0)
LCHlch(99.6 3.1 103.4)
OKLCHoklch(0.996 0.008 98.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffef8 on white: 1.01:1
AA ✗ fail · AA-large · AAA
Aa
#fffef8 on black: 20.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green99.6%
Blue97.3%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow2.7%
Key (black)0.0%

Color previews

#fffef8 text on a black background

contrast 20.78:1

Card sample

#fffef8 text on a white background

contrast 1.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffef8

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffef8 in the Color Lab