Skip to content

#fef2bf

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

RGB
254, 242, 191
HSL
49°, 97%, 87%
CMYK
0, 5, 25, 0
Luminance
0.8834

Every format

HEX#fef2bf
RGBrgb(254, 242, 191)
HSLhsl(49, 97%, 87%)
CMYKcmyk(0%, 5%, 25%, 0%)
LABlab(95.3 -3.7 26.1)
LCHlch(95.3 26.4 98.1)
OKLCHoklch(0.958 0.067 96.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red99.6%
Green94.9%
Blue74.9%

CMYK percentages

Cyan0.0%
Magenta4.7%
Yellow24.8%
Key (black)0.4%

Color previews

#fef2bf text on a black background

contrast 18.67:1

Card sample

#fef2bf text on a white background

contrast 1.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fef2bf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fef2bf in the Color Lab