Skip to content

#fefeb2

a light, electric yellow · cool · closest name: khaki

RGB
254, 254, 178
HSL
60°, 97%, 85%
CMYK
0, 0, 30, 0
Luminance
0.9517

Every format

HEX#fefeb2
RGBrgb(254, 254, 178)
HSLhsl(60, 97%, 85%)
CMYKcmyk(0%, 0%, 30%, 0%)
LABlab(98.1 -11.3 36.5)
LCHlch(98.1 38.2 107.3)
OKLCHoklch(0.980 0.096 108.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fefeb2 on white: 1.05:1
AA ✗ fail · AA-large · AAA
Aa
#fefeb2 on black: 20.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red99.6%
Green99.6%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta0.0%
Yellow29.9%
Key (black)0.4%

Color previews

#fefeb2 text on a black background

contrast 20.03:1

Card sample

#fefeb2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fefeb2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fefeb2 in the Color Lab