Skip to content

#ec8cd7

a light, vivid magenta / pink · neutral · closest name: Violet

RGB
236, 140, 215
HSL
313°, 72%, 74%
CMYK
0, 41, 9, 8
Luminance
0.4150

At a glance

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

Hex
#ec8cd7
Hue
313°
magenta / pink
Saturation
72%
vivid
Lightness
74%
light
Brightness
93%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4150
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
9.30:1
Closest name
Violet
ΔE2000 5.4
Where it sits
Hue313° of 360°
Saturation72%
Lightness74%
Temperature
Warm ← → Cool43% cool

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

Every format

HEX#ec8cd7
RGBrgb(236, 140, 215)
HSLhsl(313, 72%, 74%)
CMYKcmyk(0%, 41%, 9%, 8%)
LABlab(70.5 46.8 -22.9)
LCHlch(70.5 52.1 334.0)
OKLCHoklch(0.765 0.148 335.5)
Decimal15502551
Display P3color(display-p3 0.925 0.549 0.843)

Copy-ready code

/* CSS */
color: #ec8cd7;
background-color: #ec8cd7;
/* Tailwind (arbitrary) */
class="text-[#ec8cd7] bg-[#ec8cd7]"
/* SCSS */
$brand: #ec8cd7;
/* SwiftUI */
Color(red: 0.925, green: 0.549, blue: 0.843)
/* Android */
Color.parseColor("#ec8cd7")
/* Flutter */
Color(0xFFEC8CD7)
/* Python / OpenCV (BGR) */
(215, 140, 236)

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 #ec8cd7 · 9.30:1
Use #000000AAA at every size.
Aa
White text · 2.26:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.30:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ec8cd7 as text scores 2.26:1 on white and 9.30:1 on black.

Accessibility — WCAG contrast

Aa
#ec8cd7 on white: 2.26:1
AA ✗ fail · AA-large · AAA
Aa
#ec8cd7 on black: 9.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8DA4DA
deuteranopia · #A6B2D4
tritanopia · #F590A8

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec8cd7 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.

#FCF3FA
#F8E7F5
#F3C9EA
#ec8cd7
#E76FCD
#DF3EBC
#D223AC
#AF1D8F
#8C1773
#661554
#3F0D34
Base = 300Lightest = 50 · #FCF3FADarkest = 950 · #3F0D34
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EA;
  --brand-300: #ec8cd7;
  --brand-400: #E76FCD;
  --brand-500: #DF3EBC;
  --brand-600: #D223AC;
  --brand-700: #AF1D8F;
  --brand-800: #8C1773;
  --brand-900: #661554;
  --brand-950: #3F0D34;
  --brand: #ec8cd7;
  --brand-ink: #000000;
}

Colors that work with #ec8cd7

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#FAF4F9
Tinted page background
Border#EDC0E3
Hairlines and dividers
Muted text#9B4B89
Captions on the surface
Accent#1DB418
Second voice, not a rival
Dark variant#6D1259
Hover, pressed, headers
Light variant#FBE9F7
Selected rows, tints
Dark surface#241421
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 #ec8cd7

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#8CECA1
Analogous left#D18CEC
Analogous right#EC8CA7
Split-complement 1#A7EC8C
Split-complement 2#8CECD1
Triadic 1#D7EC8C
Triadic 2#8CD7EC
Tetradic#ECD18C

RGB percentages

Red92.5%
Green54.9%
Blue84.3%

CMYK percentages

Cyan0.0%
Magenta40.7%
Yellow8.9%
Key (black)7.5%

Color previews

#ec8cd7 text on a black background

contrast 9.30:1

Card sample

#ec8cd7 text on a white background

contrast 2.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(236, 140, 215, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(236, 140, 215, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ec8cd7;
background: linear-gradient(135deg, #ec8cd7, #EC8C97);

Monochromatic scale

Palettes built from #ec8cd7

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.

#ec8cd7 in the real world

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

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

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

#ec8cd7, answered

What color is #ec8cd7?

#ec8cd7 is a light vivid magenta / pink, closest to Violet (ΔE2000 5.4). It sits at 313° on the hue wheel with 72% saturation and 74% lightness, which reads as neutral.

What is the RGB value of #ec8cd7?

rgb(236, 140, 215) — 236 red, 140 green and 215 blue out of 255, or 92.5% / 54.9% / 84.3% by channel.

Is #ec8cd7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4150 and perceived brightness is 72%, so black text on it reaches 9.30:1.

Should I use black or white text on #ec8cd7?

Black. It scores 9.30:1 against #ec8cd7, versus 2.26:1 for white — AAA at any size.

What is the complementary color of #ec8cd7?

#8CECA1 sits directly opposite on the wheel. Softer options are the split-complements #A7EC8C and #8CECD1, which give the same contrast with far less vibration.

What colors go well with #ec8cd7?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B89 for secondary text, #1DB418 as an accent and #6D1259 for hover and pressed states. For a palette, the analogous pair #D18CEC and #EC8CA7 stays calm, while #8CECA1 is the loudest partner.

What is #ec8cd7 in CMYK for printing?

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

Is #ec8cd7 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC8CB4; nudged cooler, #DF8BED.

Work with #ec8cd7 in the Color Lab