Skip to content

#f0ecf2

a pale, soft violet · warm · closest name: white

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

Every format

HEX#f0ecf2
RGBrgb(240, 236, 242)
HSLhsl(280, 19%, 94%)
CMYKcmyk(1%, 3%, 0%, 5%)
LABlab(93.8 2.4 -2.4)
LCHlch(93.8 3.4 314.8)
OKLCHoklch(0.948 0.009 314.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ecf2 on white: 1.17:1
AA ✗ fail · AA-large · AAA
Aa
#f0ecf2 on black: 17.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.5%
Blue94.9%

CMYK percentages

Cyan0.8%
Magenta2.5%
Yellow0.0%
Key (black)5.1%

Color previews

#f0ecf2 text on a black background

contrast 17.99:1

Card sample

#f0ecf2 text on a white background

contrast 1.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ecf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ecf2 in the Color Lab