Skip to content

#f0d8fd

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

RGB
240, 216, 253
HSL
279°, 90%, 92%
CMYK
5, 15, 0, 1
Luminance
0.7473

Every format

HEX#f0d8fd
RGBrgb(240, 216, 253)
HSLhsl(279, 90%, 92%)
CMYKcmyk(5%, 15%, 0%, 1%)
LABlab(89.3 14.8 -15.0)
LCHlch(89.3 21.1 314.7)
OKLCHoklch(0.913 0.056 313.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#f0d8fd on white: 1.32:1
AA ✗ fail · AA-large · AAA
Aa
#f0d8fd on black: 15.95:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red94.1%
Green84.7%
Blue99.2%

CMYK percentages

Cyan5.1%
Magenta14.6%
Yellow0.0%
Key (black)0.8%

Color previews

#f0d8fd text on a black background

contrast 15.95:1

Card sample

#f0d8fd text on a white background

contrast 1.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #f0d8fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #f0d8fd in the Color Lab