Skip to content

#cec7da

a light, soft violet · cool · closest name: Thistle

RGB
206, 199, 218
HSL
262°, 20%, 82%
CMYK
6, 9, 0, 15
Luminance
0.5903

At a glance

Every number on this page in one read: what #cec7da is made of, how bright it looks, and which way it leans.

Hex
#cec7da
Hue
262°
violet
Saturation
20%
soft
Lightness
82%
light
Brightness
85%
HSV value
Perceived
80%
weighted brightness
Luminance
0.5903
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
12.81:1
Closest name
Thistle
ΔE2000 6.7
Where it sits
Hue262° of 360°
Saturation20%
Lightness82%
Temperature
Warm ← → Cool62% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#cec7da
RGBrgb(206, 199, 218)
HSLhsl(262, 20%, 82%)
CMYKcmyk(6%, 9%, 0%, 15%)
LABlab(81.3 6.0 -8.6)
LCHlch(81.3 10.4 304.8)
OKLCHoklch(0.841 0.027 302.5)
Decimal13551578
Display P3color(display-p3 0.808 0.780 0.855)

Copy-ready code

/* CSS */
color: #cec7da;
background-color: #cec7da;
/* Tailwind (arbitrary) */
class="text-[#cec7da] bg-[#cec7da]"
/* SCSS */
$brand: #cec7da;
/* SwiftUI */
Color(red: 0.808, green: 0.780, blue: 0.855)
/* Android */
Color.parseColor("#cec7da")
/* Flutter */
Color(0xFFCEC7DA)
/* Python / OpenCV (BGR) */
(218, 199, 206)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #cec7da · 12.81:1
Use #000000AAA at every size.
Aa
White text · 1.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.81:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cec7da as text scores 1.64:1 on white and 12.81:1 on black.

Accessibility — WCAG contrast

Aa
#cec7da on white: 1.64:1
AA ✗ fail · AA-large · AAA
Aa
#cec7da on black: 12.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #C4CADB
deuteranopia · #C5CAD9
tritanopia · #CCC9CD

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #cec7da is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F7F6F9
#EFEDF2
#DCD8E4
#cec7da
#A69ABC
#8978A6
#746193
#61517B
#4D4162
#3A3249
#241F2D
Base = 300Lightest = 50 · #F7F6F9Darkest = 950 · #241F2D
:root {
  --brand-50: #F7F6F9;
  --brand-100: #EFEDF2;
  --brand-200: #DCD8E4;
  --brand-300: #cec7da;
  --brand-400: #A69ABC;
  --brand-500: #8978A6;
  --brand-600: #746193;
  --brand-700: #61517B;
  --brand-800: #4D4162;
  --brand-900: #3A3249;
  --brand-950: #241F2D;
  --brand: #cec7da;
  --brand-ink: #000000;
}

Colors that work with #cec7da

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F7F6F9
Tinted page background
Border#D4CEDF
Hairlines and dividers
Muted text#6D5B8A
Captions on the surface
Accent#797F4D
Second voice, not a rival
Dark variant#3C334D
Hover, pressed, headers
Light variant#F2F0F5
Selected rows, tints
Dark surface#1B1622
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #cec7da

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#D3DAC7
Analogous left#C7CADA
Analogous right#D8C7DA
Split-complement 1#DAD8C7
Split-complement 2#CADAC7
Triadic 1#DACEC7
Triadic 2#C7DACE
Tetradic#DAC7CA

RGB percentages

Red80.8%
Green78.0%
Blue85.5%

CMYK percentages

Cyan5.5%
Magenta8.7%
Yellow0.0%
Key (black)14.5%

Color previews

#cec7da text on a black background

contrast 12.81:1

Card sample

#cec7da text on a white background

contrast 1.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec7da

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#cec7da in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#cec7da, answered

What color is #cec7da?

#cec7da is a light soft violet, closest to Thistle (ΔE2000 6.7). It sits at 262° on the hue wheel with 20% saturation and 82% lightness, which reads as cool.

What is the RGB value of #cec7da?

rgb(206, 199, 218) — 206 red, 199 green and 218 blue out of 255, or 80.8% / 78% / 85.5% by channel.

Is #cec7da a light or a dark color?

It is a light color. Relative luminance is 0.5903 and perceived brightness is 80%, so black text on it reaches 12.81:1.

Should I use black or white text on #cec7da?

Black. It scores 12.81:1 against #cec7da, versus 1.64:1 for white — AAA at any size.

What is the complementary color of #cec7da?

#D3DAC7 sits directly opposite on the wheel. Softer options are the split-complements #DAD8C7 and #CADAC7, which give the same contrast with far less vibration.

What colors go well with #cec7da?

For interface work: #F7F6F9 as the surface, #D4CEDF for borders, #6D5B8A for secondary text, #797F4D as an accent and #3C334D for hover and pressed states. For a palette, the analogous pair #C7CADA and #D8C7DA stays calm, while #D3DAC7 is the loudest partner.

What is #cec7da in CMYK for printing?

cmyk(6%, 9%, 0%, 15%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #cec7da warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D5C7DA; nudged cooler, #C6C6DB.

Work with #cec7da in the Color Lab