Skip to content

#cec2eb

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

RGB
206, 194, 235
HSL
258°, 51%, 84%
CMYK
12, 17, 0, 8
Luminance
0.5770

Every format

HEX#cec2eb
RGBrgb(206, 194, 235)
HSLhsl(258, 51%, 84%)
CMYKcmyk(12%, 17%, 0%, 8%)
LABlab(80.6 12.0 -18.8)
LCHlch(80.6 22.3 302.6)
OKLCHoklch(0.837 0.058 298.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#cec2eb on white: 1.67:1
AA ✗ fail · AA-large · AAA
Aa
#cec2eb on black: 12.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red80.8%
Green76.1%
Blue92.2%

CMYK percentages

Cyan12.3%
Magenta17.4%
Yellow0.0%
Key (black)7.8%

Color previews

#cec2eb text on a black background

contrast 12.54:1

Card sample

#cec2eb text on a white background

contrast 1.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec2eb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #cec2eb in the Color Lab