Skip to content

#fffea2

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

RGB
255, 254, 162
HSL
59°, 100%, 82%
CMYK
0, 0, 37, 0
Luminance
0.9475

Every format

HEX#fffea2
RGBrgb(255, 254, 162)
HSLhsl(59, 100%, 82%)
CMYKcmyk(0%, 0%, 37%, 0%)
LABlab(97.9 -12.8 44.1)
LCHlch(97.9 46.0 106.2)
OKLCHoklch(0.978 0.114 107.8)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red100.0%
Green99.6%
Blue63.5%

CMYK percentages

Cyan0.0%
Magenta0.4%
Yellow36.5%
Key (black)0.0%

Color previews

#fffea2 text on a black background

contrast 19.95:1

Card sample

#fffea2 text on a white background

contrast 1.05:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #fffea2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #fffea2 in the Color Lab