Skip to content

#fefbc2

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

RGB
254, 251, 194
HSL
57°, 97%, 88%
CMYK
0, 1, 24, 0
Luminance
0.9396

Every format

HEX#fefbc2
RGBrgb(254, 251, 194)
HSLhsl(57, 97%, 88%)
CMYKcmyk(0%, 1%, 24%, 0%)
LABlab(97.6 -7.8 27.8)
LCHlch(97.6 28.8 105.7)
OKLCHoklch(0.977 0.073 105.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefbc2 on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#fefbc2 on black: 19.79:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green98.4%
Blue76.1%

CMYK percentages

Cyan0.0%
Magenta1.2%
Yellow23.6%
Key (black)0.4%

Color previews

#fefbc2 text on a black background

contrast 19.79:1

Card sample

#fefbc2 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefbc2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefbc2 in the Color Lab