Skip to content

#f0ecff

a pale, electric blue · warm · closest name: lavender

RGB
240, 236, 255
HSL
253°, 100%, 96%
CMYK
6, 8, 0, 0
Luminance
0.8574

Every format

HEX#f0ecff
RGBrgb(240, 236, 255)
HSLhsl(253, 100%, 96%)
CMYKcmyk(6%, 8%, 0%, 0%)
LABlab(94.2 4.8 -8.7)
LCHlch(94.2 9.9 298.9)
OKLCHoklch(0.952 0.026 295.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0ecff on white: 1.16:1
AA ✗ fail · AA-large · AAA
Aa
#f0ecff on black: 18.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green92.5%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta7.5%
Yellow0.0%
Key (black)0.0%

Color previews

#f0ecff text on a black background

contrast 18.15:1

Card sample

#f0ecff text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ecff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ecff in the Color Lab