Skip to content

#d2cdf7

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

RGB
210, 205, 247
HSL
247°, 72%, 89%
CMYK
15, 17, 0, 3
Luminance
0.6408

Every format

HEX#d2cdf7
RGBrgb(210, 205, 247)
HSLhsl(247, 72%, 89%)
CMYKcmyk(15%, 17%, 0%, 3%)
LABlab(84.0 9.9 -20.0)
LCHlch(84.0 22.3 296.4)
OKLCHoklch(0.866 0.058 290.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d2cdf7 on white: 1.52:1
AA ✗ fail · AA-large · AAA
Aa
#d2cdf7 on black: 13.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

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

CMYK percentages

Cyan15.0%
Magenta17.0%
Yellow0.0%
Key (black)3.1%

Color previews

#d2cdf7 text on a black background

contrast 13.82:1

Card sample

#d2cdf7 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d2cdf7

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d2cdf7 in the Color Lab