Skip to content

#ed8cf2

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

RGB
237, 140, 242
HSL
297°, 80%, 75%
CMYK
2, 42, 0, 5
Luminance
0.4317

At a glance

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

Hex
#ed8cf2
Hue
297°
magenta / pink
Saturation
80%
electric
Lightness
75%
light
Brightness
95%
HSV value
Perceived
73%
weighted brightness
Luminance
0.4317
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
9.63:1
Closest name
Violet
ΔE2000 2
Where it sits
Hue297° of 360°
Saturation80%
Lightness75%
Temperature
Warm ← → Cool52% 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#ed8cf2
RGBrgb(237, 140, 242)
HSLhsl(297, 80%, 75%)
CMYKcmyk(2%, 42%, 0%, 5%)
LABlab(71.7 51.8 -35.9)
LCHlch(71.7 63.0 325.2)
OKLCHoklch(0.777 0.173 325.3)
Decimal15568114
Display P3color(display-p3 0.929 0.549 0.949)

Copy-ready code

/* CSS */
color: #ed8cf2;
background-color: #ed8cf2;
/* Tailwind (arbitrary) */
class="text-[#ed8cf2] bg-[#ed8cf2]"
/* SCSS */
$brand: #ed8cf2;
/* SwiftUI */
Color(red: 0.929, green: 0.549, blue: 0.949)
/* Android */
Color.parseColor("#ed8cf2")
/* Flutter */
Color(0xFFED8CF2)
/* Python / OpenCV (BGR) */
(242, 140, 237)

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

Accessibility — WCAG contrast

Aa
#ed8cf2 on white: 2.18:1
AA ✗ fail · AA-large · AAA
Aa
#ed8cf2 on black: 9.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #82A8F6
deuteranopia · #9CB4EF
tritanopia · #F297B4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ed8cf2 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
#F8E6F9
#F3C7F5
#ed8cf2
#E768EE
#E035E8
#D319DC
#AF15B7
#8C1193
#66106A
#400A42
Base = 300Lightest = 50 · #FCF3FCDarkest = 950 · #400A42
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F8E6F9;
  --brand-200: #F3C7F5;
  --brand-300: #ed8cf2;
  --brand-400: #E768EE;
  --brand-500: #E035E8;
  --brand-600: #D319DC;
  --brand-700: #AF15B7;
  --brand-800: #8C1193;
  --brand-900: #66106A;
  --brand-950: #400A42;
  --brand: #ed8cf2;
  --brand-ink: #000000;
}

Colors that work with #ed8cf2

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#EAC0ED
Hairlines and dividers
Muted text#974B9B
Captions on the surface
Accent#43BC10
Second voice, not a rival
Dark variant#6E0D73
Hover, pressed, headers
Light variant#FBE8FC
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 #ed8cf2

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#91F28C
Analogous left#BA8CF2
Analogous right#F28CC4
Split-complement 1#C4F28C
Split-complement 2#8CF2BA
Triadic 1#F2ED8C
Triadic 2#8CF2ED
Tetradic#F2BA8C

RGB percentages

Red92.9%
Green54.9%
Blue94.9%

CMYK percentages

Cyan2.1%
Magenta42.1%
Yellow0.0%
Key (black)5.1%

Color previews

#ed8cf2 text on a black background

contrast 9.63:1

Card sample

#ed8cf2 text on a white background

contrast 2.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ed8cf2

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.

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

#ed8cf2, answered

What color is #ed8cf2?

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

What is the RGB value of #ed8cf2?

rgb(237, 140, 242) — 237 red, 140 green and 242 blue out of 255, or 92.9% / 54.9% / 94.9% by channel.

Is #ed8cf2 a light or a dark color?

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

Should I use black or white text on #ed8cf2?

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

What is the complementary color of #ed8cf2?

#91F28C sits directly opposite on the wheel. Softer options are the split-complements #C4F28C and #8CF2BA, which give the same contrast with far less vibration.

What colors go well with #ed8cf2?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #974B9B for secondary text, #43BC10 as an accent and #6E0D73 for hover and pressed states. For a palette, the analogous pair #BA8CF2 and #F28CC4 stays calm, while #91F28C is the loudest partner.

What is #ed8cf2 in CMYK for printing?

cmyk(2%, 42%, 0%, 5%). 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 #ed8cf2 warm or cool?

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

Work with #ed8cf2 in the Color Lab