Skip to content

#d7ccf2

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

RGB
215, 204, 242
HSL
257°, 59%, 88%
CMYK
11, 16, 0, 5
Luminance
0.6404

Every format

HEX#d7ccf2
RGBrgb(215, 204, 242)
HSLhsl(257, 59%, 88%)
CMYKcmyk(11%, 16%, 0%, 5%)
LABlab(84.0 11.0 -17.3)
LCHlch(84.0 20.5 302.4)
OKLCHoklch(0.866 0.053 298.5)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red84.3%
Green80.0%
Blue94.9%

CMYK percentages

Cyan11.2%
Magenta15.7%
Yellow0.0%
Key (black)5.1%

Color previews

#d7ccf2 text on a black background

contrast 13.81:1

Card sample

#d7ccf2 text on a white background

contrast 1.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d7ccf2

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d7ccf2 in the Color Lab