Skip to content

#fef2c3

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

RGB
254, 242, 195
HSL
48°, 97%, 88%
CMYK
0, 5, 23, 0
Luminance
0.8852

Every format

HEX#fef2c3
RGBrgb(254, 242, 195)
HSLhsl(48, 97%, 88%)
CMYKcmyk(0%, 5%, 23%, 0%)
LABlab(95.4 -3.2 24.2)
LCHlch(95.4 24.4 97.5)
OKLCHoklch(0.959 0.062 95.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue76.5%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow23.2%
Key (black)0.4%

Color previews

#fef2c3 text on a black background

contrast 18.70:1

Card sample

#fef2c3 text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2c3

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2c3 in the Color Lab