Skip to content

#d4ccf5

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

RGB
212, 204, 245
HSL
252°, 67%, 88%
CMYK
14, 17, 0, 4
Luminance
0.6378

Every format

HEX#d4ccf5
RGBrgb(212, 204, 245)
HSLhsl(252, 67%, 88%)
CMYKcmyk(14%, 17%, 0%, 4%)
LABlab(83.8 10.6 -19.1)
LCHlch(83.8 21.9 299.1)
OKLCHoklch(0.865 0.057 294.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d4ccf5 on white: 1.53:1
AA ✗ fail · AA-large · AAA
Aa
#d4ccf5 on black: 13.76:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red83.1%
Green80.0%
Blue96.1%

CMYK percentages

Cyan13.5%
Magenta16.7%
Yellow0.0%
Key (black)3.9%

Color previews

#d4ccf5 text on a black background

contrast 13.76:1

Card sample

#d4ccf5 text on a white background

contrast 1.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d4ccf5

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d4ccf5 in the Color Lab