Skip to content

#f2fe9b

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

RGB
242, 254, 155
HSL
67°, 98%, 80%
CMYK
5, 0, 39, 0
Luminance
0.9213

Every format

HEX#f2fe9b
RGBrgb(242, 254, 155)
HSLhsl(67, 98%, 80%)
CMYKcmyk(5%, 0%, 39%, 0%)
LABlab(96.9 -18.4 46.0)
LCHlch(96.9 49.5 111.9)
OKLCHoklch(0.967 0.123 114.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green99.6%
Blue60.8%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow39.0%
Key (black)0.4%

Color previews

#f2fe9b text on a black background

contrast 19.43:1

Card sample

#f2fe9b text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fe9b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fe9b in the Color Lab