Skip to content

#ec5ab2

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

RGB
236, 90, 178
HSL
324°, 79%, 64%
CMYK
0, 62, 25, 8
Luminance
0.2836

At a glance

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

Hex
#ec5ab2
Hue
324°
magenta / pink
Saturation
79%
electric
Lightness
64%
balanced
Brightness
93%
HSV value
Perceived
62%
weighted brightness
Luminance
0.2836
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
6.67:1
Closest name
Hot Pink
ΔE2000 5.3
Where it sits
Hue324° of 360°
Saturation79%
Lightness64%
Temperature
Warm ← → Cool37% 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#ec5ab2
RGBrgb(236, 90, 178)
HSLhsl(324, 79%, 64%)
CMYKcmyk(0%, 62%, 25%, 8%)
LABlab(60.2 64.9 -17.7)
LCHlch(60.2 67.2 344.7)
OKLCHoklch(0.683 0.201 346.5)
Decimal15489714
Display P3color(display-p3 0.925 0.353 0.698)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ec5ab2 on white: 3.15:1
AA ✗ fail · AA-large · AAA
Aa
#ec5ab2 on black: 6.67:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A81B5
deuteranopia · #949AAE
tritanopia · #FB577E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ec5ab2 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
#F9E6F2
#F5C7E3
#F39AD0
#ec5ab2
#E836A1
#DB198E
#B71577
#92115F
#6A1146
#420A2C
Base = 400Lightest = 50 · #FCF3F8Darkest = 950 · #420A2C
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F9E6F2;
  --brand-200: #F5C7E3;
  --brand-300: #F39AD0;
  --brand-400: #ec5ab2;
  --brand-500: #E836A1;
  --brand-600: #DB198E;
  --brand-700: #B71577;
  --brand-800: #92115F;
  --brand-900: #6A1146;
  --brand-950: #420A2C;
  --brand: #ec5ab2;
  --brand-ink: #000000;
}

Colors that work with #ec5ab2

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#EDC0DB
Hairlines and dividers
Muted text#9B4B7B
Captions on the surface
Accent#11BB2A
Second voice, not a rival
Dark variant#720D4A
Hover, pressed, headers
Light variant#FCE8F4
Selected rows, tints
Dark surface#24141E
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 #ec5ab2

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#5AEC94
Analogous left#DD5AEC
Analogous right#EC5A69
Split-complement 1#69EC5A
Split-complement 2#5AECDD
Triadic 1#B2EC5A
Triadic 2#5AB2EC
Tetradic#ECDD5A

RGB percentages

Red92.5%
Green35.3%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta61.9%
Yellow24.6%
Key (black)7.5%

Color previews

#ec5ab2 text on a black background

contrast 6.67:1

Card sample

#ec5ab2 text on a white background

contrast 3.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec5ab2

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.

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

#ec5ab2, answered

What color is #ec5ab2?

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

What is the RGB value of #ec5ab2?

rgb(236, 90, 178) — 236 red, 90 green and 178 blue out of 255, or 92.5% / 35.3% / 69.8% by channel.

Is #ec5ab2 a light or a dark color?

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

Should I use black or white text on #ec5ab2?

Black. It scores 6.67:1 against #ec5ab2, versus 3.15:1 for white — AA at any size.

What is the complementary color of #ec5ab2?

#5AEC94 sits directly opposite on the wheel. Softer options are the split-complements #69EC5A and #5AECDD, which give the same contrast with far less vibration.

What colors go well with #ec5ab2?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7B for secondary text, #11BB2A as an accent and #720D4A for hover and pressed states. For a palette, the analogous pair #DD5AEC and #EC5A69 stays calm, while #5AEC94 is the loudest partner.

What is #ec5ab2 in CMYK for printing?

cmyk(0%, 62%, 25%, 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 #ec5ab2 warm or cool?

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

Work with #ec5ab2 in the Color Lab