Skip to content

#ec8def

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

RGB
236, 141, 239
HSL
298°, 75%, 75%
CMYK
1, 41, 0, 6
Luminance
0.4311

At a glance

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

Hex
#ec8def
Hue
298°
magenta / pink
Saturation
75%
electric
Lightness
75%
light
Brightness
94%
HSV value
Perceived
73%
weighted brightness
Luminance
0.4311
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
9.62:1
Closest name
Violet
ΔE2000 2.3
Where it sits
Hue298° of 360°
Saturation75%
Lightness75%
Temperature
Warm ← → Cool51% 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#ec8def
RGBrgb(236, 141, 239)
HSLhsl(298, 75%, 75%)
CMYKcmyk(1%, 41%, 0%, 6%)
LABlab(71.6 50.5 -34.4)
LCHlch(71.6 61.0 325.7)
OKLCHoklch(0.776 0.168 325.9)
Decimal15502831
Display P3color(display-p3 0.925 0.553 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec8def on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#ec8def on black: 9.62:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #84A8F2
deuteranopia · #9EB4EC
tritanopia · #F197B3

Color scale — 50 to 950

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

#FCF3FC
#F8E7F9
#F3C8F4
#ec8def
#E66BEA
#DE3AE3
#D11ED7
#AE19B3
#8B148F
#651368
#3F0C41
Base = 300Lightest = 50 · #FCF3FCDarkest = 950 · #3F0C41
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F8E7F9;
  --brand-200: #F3C8F4;
  --brand-300: #ec8def;
  --brand-400: #E66BEA;
  --brand-500: #DE3AE3;
  --brand-600: #D11ED7;
  --brand-700: #AE19B3;
  --brand-800: #8B148F;
  --brand-900: #651368;
  --brand-950: #3F0C41;
  --brand: #ec8def;
  --brand-ink: #000000;
}

Colors that work with #ec8def

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#FAF4FA
Tinted page background
Border#EBC0ED
Hairlines and dividers
Muted text#994B9B
Captions on the surface
Accent#42B814
Second voice, not a rival
Dark variant#6D1070
Hover, pressed, headers
Light variant#FBE9FC
Selected rows, tints
Dark surface#241424
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 #ec8def

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#90EF8D
Analogous left#BB8DEF
Analogous right#EF8DC1
Split-complement 1#C1EF8D
Split-complement 2#8DEFBB
Triadic 1#EFEC8D
Triadic 2#8DEFEC
Tetradic#EFBB8D

RGB percentages

Red92.5%
Green55.3%
Blue93.7%

CMYK percentages

Cyan1.3%
Magenta41.0%
Yellow0.0%
Key (black)6.3%

Color previews

#ec8def text on a black background

contrast 9.62:1

Card sample

#ec8def text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec8def

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.

#ec8def 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

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

#ec8def, answered

What color is #ec8def?

#ec8def is a light electric magenta / pink, closest to Violet (ΔE2000 2.3). It sits at 298° on the hue wheel with 75% saturation and 75% lightness, which reads as neutral.

What is the RGB value of #ec8def?

rgb(236, 141, 239) — 236 red, 141 green and 239 blue out of 255, or 92.5% / 55.3% / 93.7% by channel.

Is #ec8def a light or a dark color?

It is a mid-tone. Relative luminance is 0.4311 and perceived brightness is 73%, so black text on it reaches 9.62:1.

Should I use black or white text on #ec8def?

Black. It scores 9.62:1 against #ec8def, versus 2.18:1 for white — AAA at any size.

What is the complementary color of #ec8def?

#90EF8D sits directly opposite on the wheel. Softer options are the split-complements #C1EF8D and #8DEFBB, which give the same contrast with far less vibration.

What colors go well with #ec8def?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #994B9B for secondary text, #42B814 as an accent and #6D1070 for hover and pressed states. For a palette, the analogous pair #BB8DEF and #EF8DC1 stays calm, while #90EF8D is the loudest partner.

What is #ec8def in CMYK for printing?

cmyk(1%, 41%, 0%, 6%). 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 #ec8def warm or cool?

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

Work with #ec8def in the Color Lab