Skip to content

#ec7eb3

a light, vivid magenta / pink · warm · closest name: Hot Pink

RGB
236, 126, 179
HSL
331°, 74%, 71%
CMYK
0, 47, 24, 8
Luminance
0.3601

At a glance

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

Hex
#ec7eb3
Hue
331°
magenta / pink
Saturation
74%
vivid
Lightness
71%
light
Brightness
93%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3601
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
8.20:1
Closest name
Hot Pink
ΔE2000 4.6
Where it sits
Hue331° of 360°
Saturation74%
Lightness71%
Temperature
Warm ← → Cool33% 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#ec7eb3
RGBrgb(236, 126, 179)
HSLhsl(331, 74%, 71%)
CMYKcmyk(0%, 47%, 24%, 8%)
LABlab(66.5 48.4 -8.8)
LCHlch(66.5 49.2 349.7)
OKLCHoklch(0.731 0.147 351.1)
Decimal15498931
Display P3color(display-p3 0.925 0.494 0.702)

Copy-ready code

/* CSS */
color: #ec7eb3;
background-color: #ec7eb3;
/* Tailwind (arbitrary) */
class="text-[#ec7eb3] bg-[#ec7eb3]"
/* SCSS */
$brand: #ec7eb3;
/* SwiftUI */
Color(red: 0.925, green: 0.494, blue: 0.702)
/* Android */
Color.parseColor("#ec7eb3")
/* Flutter */
Color(0xFFEC7EB3)
/* Python / OpenCV (BGR) */
(179, 126, 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 #ec7eb3 · 8.20:1
Use #000000AAA at every size.
Aa
White text · 2.56:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.20:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ec7eb3 as text scores 2.56:1 on white and 8.20:1 on black.

Accessibility — WCAG contrast

Aa
#ec7eb3 on white: 2.56:1
AA ✗ fail · AA-large · AAA
Aa
#ec7eb3 on black: 8.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8A96B5
deuteranopia · #A7A9B0
tritanopia · #FA7A91

Color scale — 50 to 950

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

#FCF3F7
#F9E7EF
#F4C8DD
#F19DC5
#ec7eb3
#E23B8C
#D51F77
#B21A63
#8E154F
#67133C
#400C25
Base = 400Lightest = 50 · #FCF3F7Darkest = 950 · #400C25
:root {
  --brand-50: #FCF3F7;
  --brand-100: #F9E7EF;
  --brand-200: #F4C8DD;
  --brand-300: #F19DC5;
  --brand-400: #ec7eb3;
  --brand-500: #E23B8C;
  --brand-600: #D51F77;
  --brand-700: #B21A63;
  --brand-800: #8E154F;
  --brand-900: #67133C;
  --brand-950: #400C25;
  --brand: #ec7eb3;
  --brand-ink: #000000;
}

Colors that work with #ec7eb3

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#FAF4F7
Tinted page background
Border#EDC0D5
Hairlines and dividers
Muted text#9B4B71
Captions on the surface
Accent#16B641
Second voice, not a rival
Dark variant#6F103E
Hover, pressed, headers
Light variant#FCE9F2
Selected rows, tints
Dark surface#24141C
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 #ec7eb3

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#7EECB7
Analogous left#EC7EEA
Analogous right#EC807E
Split-complement 1#7EEC80
Split-complement 2#7EEAEC
Triadic 1#B3EC7E
Triadic 2#7EB3EC
Tetradic#EAEC7E

RGB percentages

Red92.5%
Green49.4%
Blue70.2%

CMYK percentages

Cyan0.0%
Magenta46.6%
Yellow24.2%
Key (black)7.5%

Color previews

#ec7eb3 text on a black background

contrast 8.20:1

Card sample

#ec7eb3 text on a white background

contrast 2.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ec7eb3

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.

#ec7eb3 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
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#ec7eb3, answered

What color is #ec7eb3?

#ec7eb3 is a light vivid magenta / pink, closest to Hot Pink (ΔE2000 4.6). It sits at 331° on the hue wheel with 74% saturation and 71% lightness, which reads as warm.

What is the RGB value of #ec7eb3?

rgb(236, 126, 179) — 236 red, 126 green and 179 blue out of 255, or 92.5% / 49.4% / 70.2% by channel.

Is #ec7eb3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3601 and perceived brightness is 67%, so black text on it reaches 8.20:1.

Should I use black or white text on #ec7eb3?

Black. It scores 8.20:1 against #ec7eb3, versus 2.56:1 for white — AAA at any size.

What is the complementary color of #ec7eb3?

#7EECB7 sits directly opposite on the wheel. Softer options are the split-complements #7EEC80 and #7EEAEC, which give the same contrast with far less vibration.

What colors go well with #ec7eb3?

For interface work: #FAF4F7 as the surface, #EDC0D5 for borders, #9B4B71 for secondary text, #16B641 as an accent and #6F103E for hover and pressed states. For a palette, the analogous pair #EC7EEA and #EC807E stays calm, while #7EECB7 is the loudest partner.

What is #ec7eb3 in CMYK for printing?

cmyk(0%, 47%, 24%, 8%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ec7eb3 warm or cool?

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

Work with #ec7eb3 in the Color Lab