Skip to content

#f2fead

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

RGB
242, 254, 173
HSL
69°, 98%, 84%
CMYK
5, 0, 32, 0
Luminance
0.9278

Every format

HEX#f2fead
RGBrgb(242, 254, 173)
HSLhsl(69, 98%, 84%)
CMYKcmyk(5%, 0%, 32%, 0%)
LABlab(97.1 -16.4 37.5)
LCHlch(97.1 40.9 113.6)
OKLCHoklch(0.970 0.103 115.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f2fead on white: 1.07:1
AA ✗ fail · AA-large · AAA
Aa
#f2fead on black: 19.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.9%
Green99.6%
Blue67.8%

CMYK percentages

Cyan4.7%
Magenta0.0%
Yellow31.9%
Key (black)0.4%

Color previews

#f2fead text on a black background

contrast 19.56:1

Card sample

#f2fead text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f2fead

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f2fead in the Color Lab