Skip to content

#f0ebff

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

RGB
240, 235, 255
HSL
255°, 100%, 96%
CMYK
6, 8, 0, 0
Luminance
0.8516

Every format

HEX#f0ebff
RGBrgb(240, 235, 255)
HSLhsl(255, 100%, 96%)
CMYKcmyk(6%, 8%, 0%, 0%)
LABlab(94.0 5.3 -9.0)
LCHlch(94.0 10.5 300.4)
OKLCHoklch(0.950 0.027 297.3)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green92.2%
Blue100.0%

CMYK percentages

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

Color previews

#f0ebff text on a black background

contrast 18.03:1

Card sample

#f0ebff text on a white background

contrast 1.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0ebff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0ebff in the Color Lab