Skip to content

#fefef2

a pale, electric yellow · cool · “ivory”

RGB
254, 254, 242
HSL
60°, 86%, 97%
CMYK
0, 0, 5, 0
Luminance
0.9837

Every format

HEX#fefef2
RGBrgb(254, 254, 242)
HSLhsl(60, 86%, 97%)
CMYKcmyk(0%, 0%, 5%, 0%)
LABlab(99.4 -2.0 5.7)
LCHlch(99.4 6.1 109.7)
OKLCHoklch(0.994 0.016 106.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green99.6%
Blue94.9%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow4.7%
Key (black)0.4%

Color previews

#fefef2 text on a black background

contrast 20.67:1

Card sample

#fefef2 text on a white background

contrast 1.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefef2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefef2 in the Color Lab