Skip to content

#f0f2ec

a pale, soft green · cool · closest name: white

RGB
240, 242, 236
HSL
80°, 19%, 94%
CMYK
1, 0, 3, 5
Luminance
0.8809

Every format

HEX#f0f2ec
RGBrgb(240, 242, 236)
HSLhsl(80, 19%, 94%)
CMYKcmyk(1%, 0%, 3%, 5%)
LABlab(95.2 -1.7 2.7)
LCHlch(95.2 3.2 122.9)
OKLCHoklch(0.958 0.008 121.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0f2ec on white: 1.13:1
AA ✗ fail · AA-large · AAA
Aa
#f0f2ec on black: 18.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green94.9%
Blue92.5%

CMYK percentages

Cyan0.8%
Magenta0.0%
Yellow2.5%
Key (black)5.1%

Color previews

#f0f2ec text on a black background

contrast 18.62:1

Card sample

#f0f2ec text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f2ec

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f2ec in the Color Lab