Skip to content

#f2fcaf

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

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

Every format

HEX#f2fcaf
RGBrgb(242, 252, 175)
HSLhsl(68, 93%, 84%)
CMYKcmyk(4%, 0%, 31%, 1%)
LABlab(96.7 -15.1 35.9)
LCHlch(96.7 38.9 112.9)
OKLCHoklch(0.966 0.098 114.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.9%
Green98.8%
Blue68.6%

CMYK percentages

Cyan4.0%
Magenta0.0%
Yellow30.6%
Key (black)1.2%

Color previews

#f2fcaf text on a black background

contrast 19.32:1

Card sample

#f2fcaf text on a white background

contrast 1.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fcaf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fcaf in the Color Lab