Skip to content

#f0fce2

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

RGB
240, 252, 226
HSL
88°, 81%, 94%
CMYK
5, 0, 10, 1
Luminance
0.9364

Every format

HEX#f0fce2
RGBrgb(240, 252, 226)
HSLhsl(88, 81%, 94%)
CMYKcmyk(5%, 0%, 10%, 1%)
LABlab(97.5 -8.4 11.1)
LCHlch(97.5 13.9 127.2)
OKLCHoklch(0.975 0.036 127.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0fce2 on white: 1.06:1
AA ✗ fail · AA-large · AAA
Aa
#f0fce2 on black: 19.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green98.8%
Blue88.6%

CMYK percentages

Cyan4.8%
Magenta0.0%
Yellow10.3%
Key (black)1.2%

Color previews

#f0fce2 text on a black background

contrast 19.73:1

Card sample

#f0fce2 text on a white background

contrast 1.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0fce2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0fce2 in the Color Lab