Skip to content

#d9cef9

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

RGB
217, 206, 249
HSL
255°, 78%, 89%
CMYK
13, 17, 0, 2
Luminance
0.6573

Every format

HEX#d9cef9
RGBrgb(217, 206, 249)
HSLhsl(255, 78%, 89%)
CMYKcmyk(13%, 17%, 0%, 2%)
LABlab(84.9 12.0 -19.7)
LCHlch(84.9 23.0 301.3)
OKLCHoklch(0.874 0.060 296.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9cef9 on white: 1.48:1
AA ✗ fail · AA-large · AAA
Aa
#d9cef9 on black: 14.15:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green80.8%
Blue97.6%

CMYK percentages

Cyan12.9%
Magenta17.3%
Yellow0.0%
Key (black)2.4%

Color previews

#d9cef9 text on a black background

contrast 14.15:1

Card sample

#d9cef9 text on a white background

contrast 1.48:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(217, 206, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 206, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d9cef9;
background: linear-gradient(135deg, #d9cef9, #F6CEF9);

Monochromatic scale

Palettes built from #d9cef9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9cef9 in the Color Lab