Skip to content

#f0fef1

a pale, electric green · cool · closest name: ivory

RGB
240, 254, 241
HSL
124°, 88%, 97%
CMYK
6, 0, 5, 0
Luminance
0.9576

Every format

HEX#f0fef1
RGBrgb(240, 254, 241)
HSLhsl(124, 88%, 97%)
CMYKcmyk(6%, 0%, 5%, 0%)
LABlab(98.3 -6.9 4.6)
LCHlch(98.3 8.3 146.1)
OKLCHoklch(0.983 0.022 147.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fef1 on white: 1.04:1
AA ✗ fail · AA-large · AAA
Aa
#f0fef1 on black: 20.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green99.6%
Blue94.5%

CMYK percentages

Cyan5.5%
Magenta0.0%
Yellow5.1%
Key (black)0.4%

Color previews

#f0fef1 text on a black background

contrast 20.15:1

Card sample

#f0fef1 text on a white background

contrast 1.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fef1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fef1 in the Color Lab