Skip to content

#cec7db

a light, soft violet · warm · closest name: lavender

RGB
206, 199, 219
HSL
261°, 22%, 82%
CMYK
6, 9, 0, 14
Luminance
0.5908

Every format

HEX#cec7db
RGBrgb(206, 199, 219)
HSLhsl(261, 22%, 82%)
CMYKcmyk(6%, 9%, 0%, 14%)
LABlab(81.3 6.2 -9.1)
LCHlch(81.3 10.9 304.2)
OKLCHoklch(0.841 0.029 301.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec7db on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cec7db on black: 12.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green78.0%
Blue85.9%

CMYK percentages

Cyan5.9%
Magenta9.1%
Yellow0.0%
Key (black)14.1%

Color previews

#cec7db text on a black background

contrast 12.82:1

Card sample

#cec7db text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec7db

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec7db in the Color Lab