Skip to content

#d2cef7

a pale, vivid blue · warm · closest name: lavender

RGB
210, 206, 247
HSL
246°, 72%, 89%
CMYK
15, 17, 0, 3
Luminance
0.6456

Every format

HEX#d2cef7
RGBrgb(210, 206, 247)
HSLhsl(246, 72%, 89%)
CMYKcmyk(15%, 17%, 0%, 3%)
LABlab(84.3 9.4 -19.6)
LCHlch(84.3 21.7 295.5)
OKLCHoklch(0.868 0.057 289.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cef7 on white: 1.51:1
AA ✗ fail · AA-large · AAA
Aa
#d2cef7 on black: 13.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red82.4%
Green80.8%
Blue96.9%

CMYK percentages

Cyan15.0%
Magenta16.6%
Yellow0.0%
Key (black)3.1%

Color previews

#d2cef7 text on a black background

contrast 13.91:1

Card sample

#d2cef7 text on a white background

contrast 1.51:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cef7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cef7 in the Color Lab