Skip to content

#f0faf1

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

RGB
240, 250, 241
HSL
126°, 50%, 96%
CMYK
4, 0, 4, 2
Luminance
0.9325

Every format

HEX#f0faf1
RGBrgb(240, 250, 241)
HSLhsl(126, 50%, 96%)
CMYKcmyk(4%, 0%, 4%, 2%)
LABlab(97.3 -4.9 3.2)
LCHlch(97.3 5.8 147.0)
OKLCHoklch(0.975 0.016 148.4)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green98.0%
Blue94.5%

CMYK percentages

Cyan4.0%
Magenta0.0%
Yellow3.6%
Key (black)2.0%

Color previews

#f0faf1 text on a black background

contrast 19.65:1

Card sample

#f0faf1 text on a white background

contrast 1.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0faf1

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0faf1 in the Color Lab