Skip to content

#f0daff

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

RGB
240, 218, 255
HSL
276°, 100%, 93%
CMYK
6, 15, 0, 0
Luminance
0.7589

Every format

HEX#f0daff
RGBrgb(240, 218, 255)
HSLhsl(276, 100%, 93%)
CMYKcmyk(6%, 15%, 0%, 0%)
LABlab(89.8 14.2 -15.2)
LCHlch(89.8 20.8 312.9)
OKLCHoklch(0.917 0.055 311.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0daff on white: 1.30:1
AA ✗ fail · AA-large · AAA
Aa
#f0daff on black: 16.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green85.5%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta14.5%
Yellow0.0%
Key (black)0.0%

Color previews

#f0daff text on a black background

contrast 16.18:1

Card sample

#f0daff text on a white background

contrast 1.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0daff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0daff in the Color Lab