Skip to content

#ec047f

a balanced, electric magenta / pink · warm · closest name: Deep Pink

RGB
236, 4, 127
HSL
328°, 97%, 47%
CMYK
0, 98, 46, 8
Luminance
0.1945

At a glance

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

Hex
#ec047f
Hue
328°
magenta / pink
Saturation
97%
electric
Lightness
47%
balanced
Brightness
93%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1945
WCAG relative
Temperature
Warm
34/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.89:1
Closest name
Deep Pink
ΔE2000 5
Where it sits
Hue328° of 360°
Saturation97%
Lightness47%
Temperature
Warm ← → Cool34% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ec047f
RGBrgb(236, 4, 127)
HSLhsl(328, 97%, 47%)
CMYKcmyk(0%, 98%, 46%, 8%)
LABlab(51.2 80.1 -1.1)
LCHlch(51.2 80.1 359.2)
OKLCHoklch(0.612 0.247 359.5)
Decimal15467647
Display P3color(display-p3 0.925 0.016 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec047f on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#ec047f on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #536081
deuteranopia · #8C887A
tritanopia · #FF004A

Color scale — 50 to 950

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

#FDF1F8
#FCE4F0
#FBC1E0
#FD91CA
#FC59B0
#FB2295
#ec047f
#C9036C
#A10356
#740740
#480428
Base = 600Lightest = 50 · #FDF1F8Darkest = 950 · #480428
:root {
  --brand-50: #FDF1F8;
  --brand-100: #FCE4F0;
  --brand-200: #FBC1E0;
  --brand-300: #FD91CA;
  --brand-400: #FC59B0;
  --brand-500: #FB2295;
  --brand-600: #ec047f;
  --brand-700: #C9036C;
  --brand-800: #A10356;
  --brand-900: #740740;
  --brand-950: #480428;
  --brand: #ec047f;
  --brand-ink: #000000;
}

Colors that work with #ec047f

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#FAF4F8
Tinted page background
Border#EDC0D8
Hairlines and dividers
Muted text#9B4B75
Captions on the surface
Accent#00CC2D
Second voice, not a rival
Dark variant#7D0243
Hover, pressed, headers
Light variant#FFE6F3
Selected rows, tints
Dark surface#24141D
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 #ec047f

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#04EC71
Analogous left#E504EC
Analogous right#EC040B
Split-complement 1#0BEC04
Split-complement 2#04ECE5
Triadic 1#7FEC04
Triadic 2#047FEC
Tetradic#ECE504

RGB percentages

Red92.5%
Green1.6%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta98.3%
Yellow46.2%
Key (black)7.5%

Color previews

#ec047f text on a black background

contrast 4.89:1

Card sample

#ec047f text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec047f

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.

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

#ec047f, answered

What color is #ec047f?

#ec047f is a balanced electric magenta / pink, closest to Deep Pink (ΔE2000 5). It sits at 328° on the hue wheel with 97% saturation and 47% lightness, which reads as warm.

What is the RGB value of #ec047f?

rgb(236, 4, 127) — 236 red, 4 green and 127 blue out of 255, or 92.5% / 1.6% / 49.8% by channel.

Is #ec047f a light or a dark color?

It is a mid-tone. Relative luminance is 0.1945 and perceived brightness is 53%, so black text on it reaches 4.89:1.

Should I use black or white text on #ec047f?

Black. It scores 4.89:1 against #ec047f, versus 4.29:1 for white — AA at any size.

What is the complementary color of #ec047f?

#04EC71 sits directly opposite on the wheel. Softer options are the split-complements #0BEC04 and #04ECE5, which give the same contrast with far less vibration.

What colors go well with #ec047f?

For interface work: #FAF4F8 as the surface, #EDC0D8 for borders, #9B4B75 for secondary text, #00CC2D as an accent and #7D0243 for hover and pressed states. For a palette, the analogous pair #E504EC and #EC040B stays calm, while #04EC71 is the loudest partner.

What is #ec047f in CMYK for printing?

cmyk(0%, 98%, 46%, 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 #ec047f warm or cool?

Warm — it scores 34 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC042A; nudged cooler, #EF02D6.

Work with #ec047f in the Color Lab