Skip to content

#f0dffc

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

RGB
240, 223, 252
HSL
275°, 83%, 93%
CMYK
5, 12, 0, 1
Luminance
0.7833

Every format

HEX#f0dffc
RGBrgb(240, 223, 252)
HSLhsl(275, 83%, 93%)
CMYKcmyk(5%, 12%, 0%, 1%)
LABlab(90.9 11.0 -12.0)
LCHlch(90.9 16.2 312.5)
OKLCHoklch(0.926 0.043 311.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red94.1%
Green87.5%
Blue98.8%

CMYK percentages

Cyan4.8%
Magenta11.5%
Yellow0.0%
Key (black)1.2%

Color previews

#f0dffc text on a black background

contrast 16.67:1

Card sample

#f0dffc text on a white background

contrast 1.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0dffc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0dffc in the Color Lab