Skip to content

#f0e5ff

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

RGB
240, 229, 255
HSL
265°, 100%, 95%
CMYK
6, 10, 0, 0
Luminance
0.8178

Every format

HEX#f0e5ff
RGBrgb(240, 229, 255)
HSLhsl(265, 100%, 95%)
CMYKcmyk(6%, 10%, 0%, 0%)
LABlab(92.5 8.4 -11.2)
LCHlch(92.5 14.0 306.9)
OKLCHoklch(0.938 0.037 304.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0e5ff on white: 1.21:1
AA ✗ fail · AA-large · AAA
Aa
#f0e5ff on black: 17.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green89.8%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta10.2%
Yellow0.0%
Key (black)0.0%

Color previews

#f0e5ff text on a black background

contrast 17.36:1

Card sample

#f0e5ff text on a white background

contrast 1.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0e5ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0e5ff in the Color Lab