Skip to content

#f0dffd

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

RGB
240, 223, 253
HSL
274°, 88%, 93%
CMYK
5, 12, 0, 1
Luminance
0.7839

Every format

HEX#f0dffd
RGBrgb(240, 223, 253)
HSLhsl(274, 88%, 93%)
CMYKcmyk(5%, 12%, 0%, 1%)
LABlab(91.0 11.2 -12.4)
LCHlch(91.0 16.7 311.9)
OKLCHoklch(0.926 0.044 310.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0dffd on white: 1.26:1
AA ✗ fail · AA-large · AAA
Aa
#f0dffd on black: 16.68:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green87.5%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta11.9%
Yellow0.0%
Key (black)0.8%

Color previews

#f0dffd text on a black background

contrast 16.68:1

Card sample

#f0dffd text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dffd in the Color Lab