Skip to content

#f0e7ff

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

RGB
240, 231, 255
HSL
263°, 100%, 95%
CMYK
6, 9, 0, 0
Luminance
0.8290

Every format

HEX#f0e7ff
RGBrgb(240, 231, 255)
HSLhsl(263, 100%, 95%)
CMYKcmyk(6%, 9%, 0%, 0%)
LABlab(93.0 7.4 -10.5)
LCHlch(93.0 12.8 305.1)
OKLCHoklch(0.942 0.033 302.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0e7ff on white: 1.19:1
AA ✗ fail · AA-large · AAA
Aa
#f0e7ff on black: 17.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green90.6%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta9.4%
Yellow0.0%
Key (black)0.0%

Color previews

#f0e7ff text on a black background

contrast 17.58:1

Card sample

#f0e7ff text on a white background

contrast 1.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0e7ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0e7ff in the Color Lab