Skip to content

#fffeb1

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

RGB
255, 254, 177
HSL
59°, 100%, 85%
CMYK
0, 0, 31, 0
Luminance
0.9532

Every format

HEX#fffeb1
RGBrgb(255, 254, 177)
HSLhsl(59, 100%, 85%)
CMYKcmyk(0%, 0%, 31%, 0%)
LABlab(98.2 -11.1 37.0)
LCHlch(98.2 38.7 106.6)
OKLCHoklch(0.980 0.097 107.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green99.6%
Blue69.4%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow30.6%
Key (black)0.0%

Color previews

#fffeb1 text on a black background

contrast 20.06:1

Card sample

#fffeb1 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffeb1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffeb1 in the Color Lab