Skip to content

#cec4f7

a pale, electric blue · cool · closest name: Thistle

RGB
206, 196, 247
HSL
252°, 76%, 87%
CMYK
17, 21, 0, 3
Luminance
0.5932

At a glance

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

Hex
#cec4f7
Hue
252°
blue
Saturation
76%
electric
Lightness
87%
pale
Brightness
97%
HSV value
Perceived
81%
weighted brightness
Luminance
0.5932
WCAG relative
Temperature
Cool
77/100 cool
Color family
Blue
Tone
Electric
Best ink
Black
12.86:1
Closest name
Thistle
ΔE2000 9.4
Where it sits
Hue252° of 360°
Saturation76%
Lightness87%
Temperature
Warm ← → Cool77% 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#cec4f7
RGBrgb(206, 196, 247)
HSLhsl(252, 76%, 87%)
CMYKcmyk(17%, 21%, 0%, 3%)
LABlab(81.5 13.5 -23.8)
LCHlch(81.5 27.4 299.5)
OKLCHoklch(0.845 0.071 293.8)
Decimal13550839
Display P3color(display-p3 0.808 0.769 0.969)

Copy-ready code

/* CSS */
color: #cec4f7;
background-color: #cec4f7;
/* Tailwind (arbitrary) */
class="text-[#cec4f7] bg-[#cec4f7]"
/* SCSS */
$brand: #cec4f7;
/* SwiftUI */
Color(red: 0.808, green: 0.769, blue: 0.969)
/* Android */
Color.parseColor("#cec4f7")
/* Flutter */
Color(0xFFCEC4F7)
/* Python / OpenCV (BGR) */
(247, 196, 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 #cec4f7 · 12.86:1
Use #000000AAA at every size.
Aa
White text · 1.63:1
AA fail · AA large fail · AAA fail
Aa
Black text · 12.86:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #cec4f7 as text scores 1.63:1 on white and 12.86:1 on black.

Accessibility — WCAG contrast

Aa
#cec4f7 on white: 1.63:1
AA ✗ fail · AA-large · AAA
Aa
#cec4f7 on black: 12.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #B9CBF9
deuteranopia · #BACAF6
tritanopia · #C6CCD5

Color scale — 50 to 950

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

#F5F3FC
#EAE7F9
#cec4f7
#AD9CF2
#846BEB
#5B39E4
#421DD8
#3718B4
#2C1490
#231268
#160B41
Base = 200Lightest = 50 · #F5F3FCDarkest = 950 · #160B41
:root {
  --brand-50: #F5F3FC;
  --brand-100: #EAE7F9;
  --brand-200: #cec4f7;
  --brand-300: #AD9CF2;
  --brand-400: #846BEB;
  --brand-500: #5B39E4;
  --brand-600: #421DD8;
  --brand-700: #3718B4;
  --brand-800: #2C1490;
  --brand-900: #231268;
  --brand-950: #160B41;
  --brand: #cec4f7;
  --brand-ink: #000000;
}

Colors that work with #cec4f7

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#F5F4FA
Tinted page background
Border#C9C0ED
Hairlines and dividers
Muted text#5A4B9B
Captions on the surface
Accent#B7AE15
Second voice, not a rival
Dark variant#220F70
Hover, pressed, headers
Light variant#ECE9FC
Selected rows, tints
Dark surface#171424
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 #cec4f7

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

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • 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#EDF7C4
Analogous left#C4D4F7
Analogous right#E8C4F7
Split-complement 1#F7E8C4
Split-complement 2#D4F7C4
Triadic 1#F7CEC4
Triadic 2#C4F7CE
Tetradic#F7C4D4

RGB percentages

Red80.8%
Green76.9%
Blue96.9%

CMYK percentages

Cyan16.6%
Magenta20.6%
Yellow0.0%
Key (black)3.1%

Color previews

#cec4f7 text on a black background

contrast 12.86:1

Card sample

#cec4f7 text on a white background

contrast 1.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #cec4f7

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.

#cec4f7 in the real world

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

Industries
TechnologyFinanceHealthcareEnterprise SaaS
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#cec4f7, answered

What color is #cec4f7?

#cec4f7 is a pale electric blue, closest to Thistle (ΔE2000 9.4). It sits at 252° on the hue wheel with 76% saturation and 87% lightness, which reads as cool.

What is the RGB value of #cec4f7?

rgb(206, 196, 247) — 206 red, 196 green and 247 blue out of 255, or 80.8% / 76.9% / 96.9% by channel.

Is #cec4f7 a light or a dark color?

It is a light color. Relative luminance is 0.5932 and perceived brightness is 81%, so black text on it reaches 12.86:1.

Should I use black or white text on #cec4f7?

Black. It scores 12.86:1 against #cec4f7, versus 1.63:1 for white — AAA at any size.

What is the complementary color of #cec4f7?

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

What colors go well with #cec4f7?

For interface work: #F5F4FA as the surface, #C9C0ED for borders, #5A4B9B for secondary text, #B7AE15 as an accent and #220F70 for hover and pressed states. For a palette, the analogous pair #C4D4F7 and #E8C4F7 stays calm, while #EDF7C4 is the loudest partner.

What is #cec4f7 in CMYK for printing?

cmyk(17%, 21%, 0%, 3%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #cec4f7 warm or cool?

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

Work with #cec4f7 in the Color Lab