Skip to content

#ec2cd2

a balanced, electric magenta / pink · neutral · closest name: Magenta

RGB
236, 44, 210
HSL
308°, 84%, 55%
CMYK
0, 81, 11, 8
Luminance
0.2429

At a glance

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

Hex
#ec2cd2
Hue
308°
magenta / pink
Saturation
84%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2429
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.86:1
Closest name
Magenta
ΔE2000 6.1
Where it sits
Hue308° of 360°
Saturation84%
Lightness55%
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#ec2cd2
RGBrgb(236, 44, 210)
HSLhsl(308, 84%, 55%)
CMYKcmyk(0%, 81%, 11%, 8%)
LABlab(56.4 83.8 -42.0)
LCHlch(56.4 93.7 333.4)
OKLCHoklch(0.660 0.270 334.8)
Decimal15477970
Display P3color(display-p3 0.925 0.173 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2cd2 on white: 3.59:1
AA ✗ fail · AA-large · AAA
Aa
#ec2cd2 on black: 5.86:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2976D6
deuteranopia · #7791CE
tritanopia · #F84180

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec2cd2 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF2FB
#FAE6F7
#F6C5F0
#F698E9
#F165DE
#ec2cd2
#E114C5
#BB11A4
#960D83
#6C0E60
#44093C
Base = 500Lightest = 50 · #FCF2FBDarkest = 950 · #44093C
:root {
  --brand-50: #FCF2FB;
  --brand-100: #FAE6F7;
  --brand-200: #F6C5F0;
  --brand-300: #F698E9;
  --brand-400: #F165DE;
  --brand-500: #ec2cd2;
  --brand-600: #E114C5;
  --brand-700: #BB11A4;
  --brand-800: #960D83;
  --brand-900: #6C0E60;
  --brand-950: #44093C;
  --brand: #ec2cd2;
  --brand-ink: #000000;
}

Colors that work with #ec2cd2

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#EDC0E7
Hairlines and dividers
Muted text#9B4B90
Captions on the surface
Accent#22C00C
Second voice, not a rival
Dark variant#750B67
Hover, pressed, headers
Light variant#FDE8FA
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 #ec2cd2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#2CEC46
Analogous left#A62CEC
Analogous right#EC2C72
Split-complement 1#72EC2C
Split-complement 2#2CECA6
Triadic 1#D2EC2C
Triadic 2#2CD2EC
Tetradic#ECA62C

RGB percentages

Red92.5%
Green17.3%
Blue82.4%

CMYK percentages

Cyan0.0%
Magenta81.4%
Yellow11.0%
Key (black)7.5%

Color previews

#ec2cd2 text on a black background

contrast 5.86:1

Card sample

#ec2cd2 text on a white background

contrast 3.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2cd2

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.

#ec2cd2 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
ButtonsLinksFocus statesCharts
Print note

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

#ec2cd2, answered

What color is #ec2cd2?

#ec2cd2 is a balanced electric magenta / pink, closest to Magenta (ΔE2000 6.1). It sits at 308° on the hue wheel with 84% saturation and 55% lightness, which reads as neutral.

What is the RGB value of #ec2cd2?

rgb(236, 44, 210) — 236 red, 44 green and 210 blue out of 255, or 92.5% / 17.3% / 82.4% by channel.

Is #ec2cd2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2429 and perceived brightness is 59%, so black text on it reaches 5.86:1.

Should I use black or white text on #ec2cd2?

Black. It scores 5.86:1 against #ec2cd2, versus 3.59:1 for white — AA at any size.

What is the complementary color of #ec2cd2?

#2CEC46 sits directly opposite on the wheel. Softer options are the split-complements #72EC2C and #2CECA6, which give the same contrast with far less vibration.

What colors go well with #ec2cd2?

For interface work: #FAF4FA as the surface, #EDC0E7 for borders, #9B4B90 for secondary text, #22C00C as an accent and #750B67 for hover and pressed states. For a palette, the analogous pair #A62CEC and #EC2C72 stays calm, while #2CEC46 is the loudest partner.

What is #ec2cd2 in CMYK for printing?

cmyk(0%, 81%, 11%, 8%). 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 #ec2cd2 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 #EC2C8C; nudged cooler, #C12AEE.

Work with #ec2cd2 in the Color Lab