Skip to content

#ec0fdf

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

RGB
236, 15, 223
HSL
304°, 88%, 49%
CMYK
0, 94, 6, 8
Luminance
0.2350

At a glance

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

Hex
#ec0fdf
Hue
304°
magenta / pink
Saturation
88%
electric
Lightness
49%
balanced
Brightness
93%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2350
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.70:1
Closest name
Magenta
ΔE2000 5
Where it sits
Hue304° of 360°
Saturation88%
Lightness49%
Temperature
Warm ← → Cool48% 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#ec0fdf
RGBrgb(236, 15, 223)
HSLhsl(304, 88%, 49%)
CMYKcmyk(0%, 94%, 6%, 8%)
LABlab(55.6 89.8 -50.6)
LCHlch(55.6 103.1 330.6)
OKLCHoklch(0.657 0.293 331.4)
Decimal15470559
Display P3color(display-p3 0.925 0.059 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec0fdf on white: 3.68:1
AA ✗ fail · AA-large · AAA
Aa
#ec0fdf on black: 5.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0073E4
deuteranopia · #6A8FDB
tritanopia · #F63E84

Color scale — 50 to 950

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

#FDF2FC
#FAE5F9
#F8C4F5
#F896F3
#F561EC
#F22CE6
#ec0fdf
#C00CB5
#990A91
#6F0C69
#450742
Base = 600Lightest = 50 · #FDF2FCDarkest = 950 · #450742
:root {
  --brand-50: #FDF2FC;
  --brand-100: #FAE5F9;
  --brand-200: #F8C4F5;
  --brand-300: #F896F3;
  --brand-400: #F561EC;
  --brand-500: #F22CE6;
  --brand-600: #ec0fdf;
  --brand-700: #C00CB5;
  --brand-800: #990A91;
  --brand-900: #6F0C69;
  --brand-950: #450742;
  --brand: #ec0fdf;
  --brand-ink: #000000;
}

Colors that work with #ec0fdf

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#EDC0EA
Hairlines and dividers
Muted text#9B4B96
Captions on the surface
Accent#2CC408
Second voice, not a rival
Dark variant#780871
Hover, pressed, headers
Light variant#FDE7FC
Selected rows, tints
Dark surface#241423
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 #ec0fdf

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#0FEC1C
Analogous left#8A0FEC
Analogous right#EC0F71
Split-complement 1#71EC0F
Split-complement 2#0FEC8A
Triadic 1#DFEC0F
Triadic 2#0FDFEC
Tetradic#EC8A0F

RGB percentages

Red92.5%
Green5.9%
Blue87.5%

CMYK percentages

Cyan0.0%
Magenta93.6%
Yellow5.5%
Key (black)7.5%

Color previews

#ec0fdf text on a black background

contrast 5.70:1

Card sample

#ec0fdf text on a white background

contrast 3.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec0fdf

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.

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

#ec0fdf, answered

What color is #ec0fdf?

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

What is the RGB value of #ec0fdf?

rgb(236, 15, 223) — 236 red, 15 green and 223 blue out of 255, or 92.5% / 5.9% / 87.5% by channel.

Is #ec0fdf a light or a dark color?

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

Should I use black or white text on #ec0fdf?

Black. It scores 5.70:1 against #ec0fdf, versus 3.68:1 for white — AA at any size.

What is the complementary color of #ec0fdf?

#0FEC1C sits directly opposite on the wheel. Softer options are the split-complements #71EC0F and #0FEC8A, which give the same contrast with far less vibration.

What colors go well with #ec0fdf?

For interface work: #FAF4FA as the surface, #EDC0EA for borders, #9B4B96 for secondary text, #2CC408 as an accent and #780871 for hover and pressed states. For a palette, the analogous pair #8A0FEC and #EC0F71 stays calm, while #0FEC1C is the loudest partner.

What is #ec0fdf in CMYK for printing?

cmyk(0%, 94%, 6%, 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 #ec0fdf warm or cool?

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

Work with #ec0fdf in the Color Lab