Skip to content

#fffef0

a pale, electric yellow · cool · “ivory”

RGB
255, 254, 240
HSL
56°, 100%, 97%
CMYK
0, 0, 6, 0
Luminance
0.9843

Every format

HEX#fffef0
RGBrgb(255, 254, 240)
HSLhsl(56, 100%, 97%)
CMYKcmyk(0%, 0%, 6%, 0%)
LABlab(99.4 -2.0 6.8)
LCHlch(99.4 7.1 106.8)
OKLCHoklch(0.994 0.018 103.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffef0 on white: 1.02:1
AA ✗ fail · AA-large · AAA
Aa
#fffef0 on black: 20.69:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green99.6%
Blue94.1%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow5.9%
Key (black)0.0%

Color previews

#fffef0 text on a black background

contrast 20.69:1

Card sample

#fffef0 text on a white background

contrast 1.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffef0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffef0 in the Color Lab