Skip to content

#f2fe9f

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

RGB
242, 254, 159
HSL
68°, 98%, 81%
CMYK
5, 0, 37, 0
Luminance
0.9226

Every format

HEX#f2fe9f
RGBrgb(242, 254, 159)
HSLhsl(68, 98%, 81%)
CMYKcmyk(5%, 0%, 37%, 0%)
LABlab(96.9 -18.0 44.1)
LCHlch(96.9 47.6 112.2)
OKLCHoklch(0.967 0.119 114.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green99.6%
Blue62.4%

CMYK percentages

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

Color previews

#f2fe9f text on a black background

contrast 19.45:1

Card sample

#f2fe9f text on a white background

contrast 1.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fe9f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fe9f in the Color Lab