Skip to content

#f0f2eb

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

RGB
240, 242, 235
HSL
77°, 21%, 94%
CMYK
1, 0, 3, 5
Luminance
0.8803

Every format

HEX#f0f2eb
RGBrgb(240, 242, 235)
HSLhsl(77, 21%, 94%)
CMYKcmyk(1%, 0%, 3%, 5%)
LABlab(95.2 -1.9 3.1)
LCHlch(95.2 3.7 121.0)
OKLCHoklch(0.958 0.009 119.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green94.9%
Blue92.2%

CMYK percentages

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

Color previews

#f0f2eb text on a black background

contrast 18.61:1

Card sample

#f0f2eb text on a white background

contrast 1.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0f2eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0f2eb in the Color Lab