Skip to content

#ec8cdd

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

RGB
236, 140, 221
HSL
309°, 72%, 74%
CMYK
0, 41, 6, 8
Luminance
0.4181

At a glance

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

Hex
#ec8cdd
Hue
309°
magenta / pink
Saturation
72%
vivid
Lightness
74%
light
Brightness
93%
HSV value
Perceived
72%
weighted brightness
Luminance
0.4181
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
9.36:1
Closest name
Violet
ΔE2000 4.3
Where it sits
Hue309° of 360°
Saturation72%
Lightness74%
Temperature
Warm ← → Cool45% 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#ec8cdd
RGBrgb(236, 140, 221)
HSLhsl(309, 72%, 74%)
CMYKcmyk(0%, 41%, 6%, 8%)
LABlab(70.7 47.8 -25.9)
LCHlch(70.7 54.4 331.6)
OKLCHoklch(0.767 0.153 332.9)
Decimal15502557
Display P3color(display-p3 0.925 0.549 0.867)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec8cdd on white: 2.24:1
AA ✗ fail · AA-large · AAA
Aa
#ec8cdd on black: 9.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8AA5E0
deuteranopia · #A4B2DA
tritanopia · #F491AB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec8cdd 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
#F8E7F6
#F3C9EC
#ec8cdd
#E76FD4
#DF3EC6
#D223B7
#AF1D98
#8C177A
#661559
#3F0D38
Base = 300Lightest = 50 · #FCF3FADarkest = 950 · #3F0D38
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F6;
  --brand-200: #F3C9EC;
  --brand-300: #ec8cdd;
  --brand-400: #E76FD4;
  --brand-500: #DF3EC6;
  --brand-600: #D223B7;
  --brand-700: #AF1D98;
  --brand-800: #8C177A;
  --brand-900: #661559;
  --brand-950: #3F0D38;
  --brand: #ec8cdd;
  --brand-ink: #000000;
}

Colors that work with #ec8cdd

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#EDC0E6
Hairlines and dividers
Muted text#9B4B8E
Captions on the surface
Accent#28B418
Second voice, not a rival
Dark variant#6D125F
Hover, pressed, headers
Light variant#FBE9F9
Selected rows, tints
Dark surface#241422
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 #ec8cdd

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#8CEC9B
Analogous left#CB8CEC
Analogous right#EC8CAD
Split-complement 1#ADEC8C
Split-complement 2#8CECCB
Triadic 1#DDEC8C
Triadic 2#8CDDEC
Tetradic#ECCB8C

RGB percentages

Red92.5%
Green54.9%
Blue86.7%

CMYK percentages

Cyan0.0%
Magenta40.7%
Yellow6.4%
Key (black)7.5%

Color previews

#ec8cdd text on a black background

contrast 9.36:1

Card sample

#ec8cdd text on a white background

contrast 2.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec8cdd

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.

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

#ec8cdd, answered

What color is #ec8cdd?

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

What is the RGB value of #ec8cdd?

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

Is #ec8cdd a light or a dark color?

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

Should I use black or white text on #ec8cdd?

Black. It scores 9.36:1 against #ec8cdd, versus 2.24:1 for white — AAA at any size.

What is the complementary color of #ec8cdd?

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

What colors go well with #ec8cdd?

For interface work: #FAF4F9 as the surface, #EDC0E6 for borders, #9B4B8E for secondary text, #28B418 as an accent and #6D125F for hover and pressed states. For a palette, the analogous pair #CB8CEC and #EC8CAD stays calm, while #8CEC9B is the loudest partner.

What is #ec8cdd in CMYK for printing?

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

Is #ec8cdd warm or cool?

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

Work with #ec8cdd in the Color Lab