Skip to content

#fffec1

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

RGB
255, 254, 193
HSL
59°, 100%, 88%
CMYK
0, 0, 24, 0
Luminance
0.9599

Every format

HEX#fffec1
RGBrgb(255, 254, 193)
HSLhsl(59, 100%, 88%)
CMYKcmyk(0%, 0%, 24%, 0%)
LABlab(98.4 -9.1 29.4)
LCHlch(98.4 30.8 107.1)
OKLCHoklch(0.983 0.078 107.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#fffec1 on white: 1.04:1
AA ✗ fail · AA-large · AAA
Aa
#fffec1 on black: 20.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red100.0%
Green99.6%
Blue75.7%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow24.3%
Key (black)0.0%

Color previews

#fffec1 text on a black background

contrast 20.20:1

Card sample

#fffec1 text on a white background

contrast 1.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffec1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffec1 in the Color Lab