Skip to content

#cec6dc

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

RGB
206, 198, 220
HSL
262°, 24%, 82%
CMYK
6, 10, 0, 14
Luminance
0.5868

Every format

HEX#cec6dc
RGBrgb(206, 198, 220)
HSLhsl(262, 24%, 82%)
CMYKcmyk(6%, 10%, 0%, 14%)
LABlab(81.1 6.9 -9.9)
LCHlch(81.1 12.1 304.7)
OKLCHoklch(0.840 0.031 302.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec6dc on white: 1.65:1
AA ✗ fail · AA-large · AAA
Aa
#cec6dc on black: 12.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green77.6%
Blue86.3%

CMYK percentages

Cyan6.4%
Magenta10.0%
Yellow0.0%
Key (black)13.7%

Color previews

#cec6dc text on a black background

contrast 12.74:1

Card sample

#cec6dc text on a white background

contrast 1.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec6dc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec6dc in the Color Lab