Skip to content

#ec2acd

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

RGB
236, 42, 205
HSL
310°, 84%, 55%
CMYK
0, 82, 13, 8
Luminance
0.2390

At a glance

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

Hex
#ec2acd
Hue
310°
magenta / pink
Saturation
84%
electric
Lightness
55%
balanced
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2390
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.78:1
Closest name
Magenta
ΔE2000 6.8
Where it sits
Hue310° 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#ec2acd
RGBrgb(236, 42, 205)
HSLhsl(310, 84%, 55%)
CMYKcmyk(0%, 82%, 13%, 8%)
LABlab(56.0 83.5 -39.8)
LCHlch(56.0 92.5 334.5)
OKLCHoklch(0.656 0.269 336.1)
Decimal15477453
Display P3color(display-p3 0.925 0.165 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec2acd on white: 3.63:1
AA ✗ fail · AA-large · AAA
Aa
#ec2acd on black: 5.78:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2E74D1
deuteranopia · #7890C9
tritanopia · #F83C7D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec2acd 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
#F6C5EE
#F698E7
#F165DB
#ec2acd
#E114C0
#BB11A0
#960D80
#6C0E5D
#44093A
Base = 500Lightest = 50 · #FCF2FBDarkest = 950 · #44093A
:root {
  --brand-50: #FCF2FB;
  --brand-100: #FAE6F7;
  --brand-200: #F6C5EE;
  --brand-300: #F698E7;
  --brand-400: #F165DB;
  --brand-500: #ec2acd;
  --brand-600: #E114C0;
  --brand-700: #BB11A0;
  --brand-800: #960D80;
  --brand-900: #6C0E5D;
  --brand-950: #44093A;
  --brand: #ec2acd;
  --brand-ink: #000000;
}

Colors that work with #ec2acd

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#EDC0E5
Hairlines and dividers
Muted text#9B4B8E
Captions on the surface
Accent#1DC00C
Second voice, not a rival
Dark variant#750A64
Hover, pressed, headers
Light variant#FDE8F9
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 #ec2acd

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#2AEC49
Analogous left#AA2AEC
Analogous right#EC2A6C
Split-complement 1#6CEC2A
Split-complement 2#2AECAA
Triadic 1#CDEC2A
Triadic 2#2ACDEC
Tetradic#ECAA2A

RGB percentages

Red92.5%
Green16.5%
Blue80.4%

CMYK percentages

Cyan0.0%
Magenta82.2%
Yellow13.1%
Key (black)7.5%

Color previews

#ec2acd text on a black background

contrast 5.78:1

Card sample

#ec2acd text on a white background

contrast 3.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec2acd

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.

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

#ec2acd, answered

What color is #ec2acd?

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

What is the RGB value of #ec2acd?

rgb(236, 42, 205) — 236 red, 42 green and 205 blue out of 255, or 92.5% / 16.5% / 80.4% by channel.

Is #ec2acd a light or a dark color?

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

Should I use black or white text on #ec2acd?

Black. It scores 5.78:1 against #ec2acd, versus 3.63:1 for white — AA at any size.

What is the complementary color of #ec2acd?

#2AEC49 sits directly opposite on the wheel. Softer options are the split-complements #6CEC2A and #2AECAA, which give the same contrast with far less vibration.

What colors go well with #ec2acd?

For interface work: #FAF4F9 as the surface, #EDC0E5 for borders, #9B4B8E for secondary text, #1DC00C as an accent and #750A64 for hover and pressed states. For a palette, the analogous pair #AA2AEC and #EC2A6C stays calm, while #2AEC49 is the loudest partner.

What is #ec2acd in CMYK for printing?

cmyk(0%, 82%, 13%, 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 #ec2acd 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 #EC2A86; nudged cooler, #C528EE.

Work with #ec2acd in the Color Lab