Skip to content

#f2fea2

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

RGB
242, 254, 162
HSL
68°, 98%, 82%
CMYK
5, 0, 36, 0
Luminance
0.9237

Every format

HEX#f2fea2
RGBrgb(242, 254, 162)
HSLhsl(68, 98%, 82%)
CMYKcmyk(5%, 0%, 36%, 0%)
LABlab(97.0 -17.7 42.7)
LCHlch(97.0 46.2 112.5)
OKLCHoklch(0.968 0.116 114.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green99.6%
Blue63.5%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow36.2%
Key (black)0.4%

Color previews

#f2fea2 text on a black background

contrast 19.47:1

Card sample

#f2fea2 text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fea2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fea2 in the Color Lab