Skip to content

#ec0dcd

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

RGB
236, 13, 205
HSL
308°, 90%, 49%
CMYK
0, 95, 13, 8
Luminance
0.2253

At a glance

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

Hex
#ec0dcd
Hue
308°
magenta / pink
Saturation
90%
electric
Lightness
49%
balanced
Brightness
93%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2253
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.51:1
Closest name
Magenta
ΔE2000 7.2
Where it sits
Hue308° of 360°
Saturation90%
Lightness49%
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#ec0dcd
RGBrgb(236, 13, 205)
HSLhsl(308, 90%, 49%)
CMYKcmyk(0%, 95%, 13%, 8%)
LABlab(54.6 87.6 -42.0)
LCHlch(54.6 97.2 334.4)
OKLCHoklch(0.646 0.282 336.0)
Decimal15470029
Display P3color(display-p3 0.925 0.051 0.804)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec0dcd on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#ec0dcd on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #146FD1
deuteranopia · #738DC9
tritanopia · #F92F79

Color scale — 50 to 950

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

#FDF2FB
#FBE5F8
#F8C3F1
#F995EB
#F65FE1
#F32AD8
#ec0dcd
#C10BA8
#9B0886
#700B62
#46073D
Base = 600Lightest = 50 · #FDF2FBDarkest = 950 · #46073D
:root {
  --brand-50: #FDF2FB;
  --brand-100: #FBE5F8;
  --brand-200: #F8C3F1;
  --brand-300: #F995EB;
  --brand-400: #F65FE1;
  --brand-500: #F32AD8;
  --brand-600: #ec0dcd;
  --brand-700: #C10BA8;
  --brand-800: #9B0886;
  --brand-900: #700B62;
  --brand-950: #46073D;
  --brand: #ec0dcd;
  --brand-ink: #000000;
}

Colors that work with #ec0dcd

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#EDC0E6
Hairlines and dividers
Muted text#9B4B90
Captions on the surface
Accent#1CC507
Second voice, not a rival
Dark variant#790769
Hover, pressed, headers
Light variant#FEE7FB
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 #ec0dcd

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#0DEC2C
Analogous left#9B0DEC
Analogous right#EC0D5E
Split-complement 1#5EEC0D
Split-complement 2#0DEC9B
Triadic 1#CDEC0D
Triadic 2#0DCDEC
Tetradic#EC9B0D

RGB percentages

Red92.5%
Green5.1%
Blue80.4%

CMYK percentages

Cyan0.0%
Magenta94.5%
Yellow13.1%
Key (black)7.5%

Color previews

#ec0dcd text on a black background

contrast 5.51:1

Card sample

#ec0dcd text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0dcd

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.

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

#ec0dcd, answered

What color is #ec0dcd?

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

What is the RGB value of #ec0dcd?

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

Is #ec0dcd a light or a dark color?

It is a mid-tone. Relative luminance is 0.2253 and perceived brightness is 58%, so black text on it reaches 5.51:1.

Should I use black or white text on #ec0dcd?

Black. It scores 5.51:1 against #ec0dcd, versus 3.81:1 for white — AA at any size.

What is the complementary color of #ec0dcd?

#0DEC2C sits directly opposite on the wheel. Softer options are the split-complements #5EEC0D and #0DEC9B, which give the same contrast with far less vibration.

What colors go well with #ec0dcd?

For interface work: #FAF4FA as the surface, #EDC0E6 for borders, #9B4B90 for secondary text, #1CC507 as an accent and #790769 for hover and pressed states. For a palette, the analogous pair #9B0DEC and #EC0D5E stays calm, while #0DEC2C is the loudest partner.

What is #ec0dcd in CMYK for printing?

cmyk(0%, 95%, 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 #ec0dcd 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 #EC0D7B; nudged cooler, #BA0AEE.

Work with #ec0dcd in the Color Lab