Skip to content

#f0d6ff

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

RGB
240, 214, 255
HSL
278°, 100%, 92%
CMYK
6, 16, 0, 0
Luminance
0.7384

Every format

HEX#f0d6ff
RGBrgb(240, 214, 255)
HSLhsl(278, 100%, 92%)
CMYKcmyk(6%, 16%, 0%, 0%)
LABlab(88.8 16.3 -16.6)
LCHlch(88.8 23.3 314.3)
OKLCHoklch(0.910 0.061 313.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d6ff on white: 1.33:1
AA ✗ fail · AA-large · AAA
Aa
#f0d6ff on black: 15.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green83.9%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta16.1%
Yellow0.0%
Key (black)0.0%

Color previews

#f0d6ff text on a black background

contrast 15.77:1

Card sample

#f0d6ff text on a white background

contrast 1.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0d6ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d6ff in the Color Lab