Skip to content

#f0d0ff

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

RGB
240, 208, 255
HSL
281°, 100%, 91%
CMYK
6, 18, 0, 0
Luminance
0.7086

Every format

HEX#f0d0ff
RGBrgb(240, 208, 255)
HSLhsl(281, 100%, 91%)
CMYKcmyk(6%, 18%, 0%, 0%)
LABlab(87.4 19.4 -18.8)
LCHlch(87.4 27.0 315.9)
OKLCHoklch(0.899 0.072 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d0ff on white: 1.38:1
AA ✗ fail · AA-large · AAA
Aa
#f0d0ff on black: 15.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green81.6%
Blue100.0%

CMYK percentages

Cyan5.9%
Magenta18.4%
Yellow0.0%
Key (black)0.0%

Color previews

#f0d0ff text on a black background

contrast 15.17:1

Card sample

#f0d0ff text on a white background

contrast 1.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0d0ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d0ff in the Color Lab