Skip to content

#f2fe6f

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

RGB
242, 254, 111
HSL
65°, 99%, 72%
CMYK
5, 0, 56, 0
Luminance
0.9091

Every format

HEX#f2fe6f
RGBrgb(242, 254, 111)
HSLhsl(65, 99%, 72%)
CMYKcmyk(5%, 0%, 56%, 0%)
LABlab(96.4 -22.5 65.6)
LCHlch(96.4 69.3 108.9)
OKLCHoklch(0.961 0.166 113.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2fe6f on white: 1.09:1
AA ✗ fail · AA-large · AAA
Aa
#f2fe6f on black: 19.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green99.6%
Blue43.5%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow56.3%
Key (black)0.4%

Color previews

#f2fe6f text on a black background

contrast 19.18:1

Card sample

#f2fe6f text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fe6f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fe6f in the Color Lab