Skip to content

#fef6c2

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

RGB
254, 246, 194
HSL
52°, 97%, 88%
CMYK
0, 3, 24, 0
Luminance
0.9088

Every format

HEX#fef6c2
RGBrgb(254, 246, 194)
HSLhsl(52, 97%, 88%)
CMYKcmyk(0%, 3%, 24%, 0%)
LABlab(96.4 -5.3 26.0)
LCHlch(96.4 26.6 101.5)
OKLCHoklch(0.967 0.067 100.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef6c2 on white: 1.10:1
AA ✗ fail · AA-large · AAA
Aa
#fef6c2 on black: 19.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green96.5%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta3.1%
Yellow23.6%
Key (black)0.4%

Color previews

#fef6c2 text on a black background

contrast 19.18:1

Card sample

#fef6c2 text on a white background

contrast 1.10:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef6c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef6c2 in the Color Lab