Skip to content

#d4cdf2

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

RGB
212, 205, 242
HSL
251°, 59%, 88%
CMYK
12, 15, 0, 5
Luminance
0.6407

Every format

HEX#d4cdf2
RGBrgb(212, 205, 242)
HSLhsl(251, 59%, 88%)
CMYKcmyk(12%, 15%, 0%, 5%)
LABlab(84.0 9.5 -17.3)
LCHlch(84.0 19.7 298.8)
OKLCHoklch(0.866 0.051 294.0)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red83.1%
Green80.4%
Blue94.9%

CMYK percentages

Cyan12.4%
Magenta15.3%
Yellow0.0%
Key (black)5.1%

Color previews

#d4cdf2 text on a black background

contrast 13.81:1

Card sample

#d4cdf2 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4cdf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4cdf2 in the Color Lab