Skip to content

#f2fea4

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

RGB
242, 254, 164
HSL
68°, 98%, 82%
CMYK
5, 0, 35, 0
Luminance
0.9244

Every format

HEX#f2fea4
RGBrgb(242, 254, 164)
HSLhsl(68, 98%, 82%)
CMYKcmyk(5%, 0%, 35%, 0%)
LABlab(97.0 -17.4 41.8)
LCHlch(97.0 45.3 112.7)
OKLCHoklch(0.968 0.113 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2fea4 on white: 1.08:1
AA ✗ fail · AA-large · AAA
Aa
#f2fea4 on black: 19.49:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green99.6%
Blue64.3%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow35.4%
Key (black)0.4%

Color previews

#f2fea4 text on a black background

contrast 19.49:1

Card sample

#f2fea4 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fea4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fea4 in the Color Lab