Skip to content

#ec5fad

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

RGB
236, 95, 173
HSL
327°, 79%, 65%
CMYK
0, 60, 27, 8
Luminance
0.2903

At a glance

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

Hex
#ec5fad
Hue
327°
magenta / pink
Saturation
79%
electric
Lightness
65%
balanced
Brightness
93%
HSV value
Perceived
62%
weighted brightness
Luminance
0.2903
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.81:1
Closest name
Hot Pink
ΔE2000 4.2
Where it sits
Hue327° of 360°
Saturation79%
Lightness65%
Temperature
Warm ← → Cool35% 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#ec5fad
RGBrgb(236, 95, 173)
HSLhsl(327, 79%, 65%)
CMYKcmyk(0%, 60%, 27%, 8%)
LABlab(60.8 62.1 -13.9)
LCHlch(60.8 63.7 347.3)
OKLCHoklch(0.687 0.192 349.0)
Decimal15490989
Display P3color(display-p3 0.925 0.373 0.678)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec5fad on white: 3.09:1
AA ✗ fail · AA-large · AAA
Aa
#ec5fad on black: 6.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7083AF
deuteranopia · #979CAA
tritanopia · #FC5A7E

Color scale — 50 to 950

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

#FCF3F8
#F9E6F1
#F5C7E0
#F39BCC
#ec5fad
#E73698
#DB1A85
#B6166F
#921158
#6A1142
#420B29
Base = 400Lightest = 50 · #FCF3F8Darkest = 950 · #420B29
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F9E6F1;
  --brand-200: #F5C7E0;
  --brand-300: #F39BCC;
  --brand-400: #ec5fad;
  --brand-500: #E73698;
  --brand-600: #DB1A85;
  --brand-700: #B6166F;
  --brand-800: #921158;
  --brand-900: #6A1142;
  --brand-950: #420B29;
  --brand: #ec5fad;
  --brand-ink: #000000;
}

Colors that work with #ec5fad

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#EDC0D9
Hairlines and dividers
Muted text#9B4B77
Captions on the surface
Accent#11BB33
Second voice, not a rival
Dark variant#720E45
Hover, pressed, headers
Light variant#FCE8F3
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 #ec5fad

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#5FEC9E
Analogous left#E55FEC
Analogous right#EC5F66
Split-complement 1#66EC5F
Split-complement 2#5FECE5
Triadic 1#ADEC5F
Triadic 2#5FADEC
Tetradic#ECE55F

RGB percentages

Red92.5%
Green37.3%
Blue67.8%

CMYK percentages

Cyan0.0%
Magenta59.7%
Yellow26.7%
Key (black)7.5%

Color previews

#ec5fad text on a black background

contrast 6.81:1

Card sample

#ec5fad text on a white background

contrast 3.09:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec5fad

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.

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

#ec5fad, answered

What color is #ec5fad?

#ec5fad is a balanced electric magenta / pink, closest to Hot Pink (ΔE2000 4.2). It sits at 327° on the hue wheel with 79% saturation and 65% lightness, which reads as warm.

What is the RGB value of #ec5fad?

rgb(236, 95, 173) — 236 red, 95 green and 173 blue out of 255, or 92.5% / 37.3% / 67.8% by channel.

Is #ec5fad a light or a dark color?

It is a mid-tone. Relative luminance is 0.2903 and perceived brightness is 62%, so black text on it reaches 6.81:1.

Should I use black or white text on #ec5fad?

Black. It scores 6.81:1 against #ec5fad, versus 3.09:1 for white — AA at any size.

What is the complementary color of #ec5fad?

#5FEC9E sits directly opposite on the wheel. Softer options are the split-complements #66EC5F and #5FECE5, which give the same contrast with far less vibration.

What colors go well with #ec5fad?

For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B77 for secondary text, #11BB33 as an accent and #720E45 for hover and pressed states. For a palette, the analogous pair #E55FEC and #EC5F66 stays calm, while #5FEC9E is the loudest partner.

What is #ec5fad in CMYK for printing?

cmyk(0%, 60%, 27%, 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 #ec5fad warm or cool?

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

Work with #ec5fad in the Color Lab