Skip to content

#d8c7f9

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

RGB
216, 199, 249
HSL
260°, 81%, 88%
CMYK
13, 20, 0, 2
Luminance
0.6229

Every format

HEX#d8c7f9
RGBrgb(216, 199, 249)
HSLhsl(260, 81%, 88%)
CMYKcmyk(13%, 20%, 0%, 2%)
LABlab(83.1 15.4 -22.4)
LCHlch(83.1 27.2 304.5)
OKLCHoklch(0.860 0.071 300.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d8c7f9 on white: 1.56:1
AA ✗ fail · AA-large · AAA
Aa
#d8c7f9 on black: 13.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red84.7%
Green78.0%
Blue97.6%

CMYK percentages

Cyan13.3%
Magenta20.1%
Yellow0.0%
Key (black)2.4%

Color previews

#d8c7f9 text on a black background

contrast 13.46:1

Card sample

#d8c7f9 text on a white background

contrast 1.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(216, 199, 249, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(216, 199, 249, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d8c7f9;
background: linear-gradient(135deg, #d8c7f9, #F9C7F9);

Monochromatic scale

Palettes built from #d8c7f9

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #d8c7f9 in the Color Lab