Skip to content

#fef3c2

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

RGB
254, 243, 194
HSL
49°, 97%, 88%
CMYK
0, 4, 24, 0
Luminance
0.8907

Every format

HEX#fef3c2
RGBrgb(254, 243, 194)
HSLhsl(49, 97%, 88%)
CMYKcmyk(0%, 4%, 24%, 0%)
LABlab(95.6 -3.8 25.0)
LCHlch(95.6 25.3 98.7)
OKLCHoklch(0.961 0.064 96.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fef3c2 on white: 1.12:1
AA ✗ fail · AA-large · AAA
Aa
#fef3c2 on black: 18.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green95.3%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta4.3%
Yellow23.6%
Key (black)0.4%

Color previews

#fef3c2 text on a black background

contrast 18.81:1

Card sample

#fef3c2 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef3c2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef3c2 in the Color Lab