Skip to content

#d9cdf2

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

RGB
217, 205, 242
HSL
260°, 59%, 88%
CMYK
10, 15, 0, 5
Luminance
0.6483

Every format

HEX#d9cdf2
RGBrgb(217, 205, 242)
HSLhsl(260, 59%, 88%)
CMYKcmyk(10%, 15%, 0%, 5%)
LABlab(84.4 11.1 -16.7)
LCHlch(84.4 20.0 303.6)
OKLCHoklch(0.870 0.052 300.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d9cdf2 on white: 1.50:1
AA ✗ fail · AA-large · AAA
Aa
#d9cdf2 on black: 13.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red85.1%
Green80.4%
Blue94.9%

CMYK percentages

Cyan10.3%
Magenta15.3%
Yellow0.0%
Key (black)5.1%

Color previews

#d9cdf2 text on a black background

contrast 13.97:1

Card sample

#d9cdf2 text on a white background

contrast 1.50:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d9cdf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d9cdf2 in the Color Lab