Skip to content

#ec8cda

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

RGB
236, 140, 218
HSL
311°, 72%, 74%
CMYK
0, 41, 8, 8
Luminance
0.4165

At a glance

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

Hex
#ec8cda
Hue
311°
magenta / pink
Saturation
72%
vivid
Lightness
74%
light
Brightness
93%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4165
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
9.33:1
Closest name
Violet
ΔE2000 4.8
Where it sits
Hue311° of 360°
Saturation72%
Lightness74%
Temperature
Warm ← → Cool44% 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#ec8cda
RGBrgb(236, 140, 218)
HSLhsl(311, 72%, 74%)
CMYKcmyk(0%, 41%, 8%, 8%)
LABlab(70.6 47.3 -24.4)
LCHlch(70.6 53.2 332.7)
OKLCHoklch(0.766 0.151 334.2)
Decimal15502554
Display P3color(display-p3 0.925 0.549 0.855)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec8cda on white: 2.25:1
AA ✗ fail · AA-large · AAA
Aa
#ec8cda on black: 9.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8BA4DD
deuteranopia · #A5B2D7
tritanopia · #F491A9

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec8cda 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
#F3C9EB
#ec8cda
#E76FD0
#DF3EC1
#D223B1
#AF1D94
#8C1776
#661556
#3F0D36
Base = 300Lightest = 50 · #FCF3FADarkest = 950 · #3F0D36
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EB;
  --brand-300: #ec8cda;
  --brand-400: #E76FD0;
  --brand-500: #DF3EC1;
  --brand-600: #D223B1;
  --brand-700: #AF1D94;
  --brand-800: #8C1776;
  --brand-900: #661556;
  --brand-950: #3F0D36;
  --brand: #ec8cda;
  --brand-ink: #000000;
}

Colors that work with #ec8cda

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8C
Captions on the surface
Accent#21B418
Second voice, not a rival
Dark variant#6D125C
Hover, pressed, headers
Light variant#FBE9F8
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 #ec8cda

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#8CEC9E
Analogous left#CE8CEC
Analogous right#EC8CAA
Split-complement 1#AAEC8C
Split-complement 2#8CECCE
Triadic 1#DAEC8C
Triadic 2#8CDAEC
Tetradic#ECCE8C

RGB percentages

Red92.5%
Green54.9%
Blue85.5%

CMYK percentages

Cyan0.0%
Magenta40.7%
Yellow7.6%
Key (black)7.5%

Color previews

#ec8cda text on a black background

contrast 9.33:1

Card sample

#ec8cda text on a white background

contrast 2.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec8cda

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.

#ec8cda 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.

#ec8cda, answered

What color is #ec8cda?

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

What is the RGB value of #ec8cda?

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

Is #ec8cda a light or a dark color?

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

Should I use black or white text on #ec8cda?

Black. It scores 9.33:1 against #ec8cda, versus 2.25:1 for white — AAA at any size.

What is the complementary color of #ec8cda?

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

What colors go well with #ec8cda?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8C for secondary text, #21B418 as an accent and #6D125C for hover and pressed states. For a palette, the analogous pair #CE8CEC and #EC8CAA stays calm, while #8CEC9E is the loudest partner.

What is #ec8cda in CMYK for printing?

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

Is #ec8cda warm or cool?

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

Work with #ec8cda in the Color Lab