Skip to content

#f2fcae

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

RGB
242, 252, 174
HSL
68°, 93%, 84%
CMYK
4, 0, 31, 1
Luminance
0.9155

Every format

HEX#f2fcae
RGBrgb(242, 252, 174)
HSLhsl(68, 93%, 84%)
CMYKcmyk(4%, 0%, 31%, 1%)
LABlab(96.6 -15.3 36.3)
LCHlch(96.6 39.4 112.8)
OKLCHoklch(0.966 0.099 114.2)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green98.8%
Blue68.2%

CMYK percentages

Cyan4.0%
Magenta0.0%
Yellow31.0%
Key (black)1.2%

Color previews

#f2fcae text on a black background

contrast 19.31:1

Card sample

#f2fcae text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fcae

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fcae in the Color Lab