#ec7dac
a light, vivid magenta / pink · warm · closest name: Hot Pink
At a glance
Every number on this page in one read: what #ec7dac is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #ec7dac |
| RGB | rgb(236, 125, 172) |
| HSL | hsl(335, 75%, 71%) |
| CMYK | cmyk(0%, 47%, 27%, 8%) |
| LAB | lab(66.1 48.0 -5.5) |
| LCH | lch(66.1 48.3 353.5) |
| OKLCH | oklch(0.727 0.145 354.6) |
| Decimal | 15498668 |
| Display P3 | color(display-p3 0.925 0.490 0.675) |
Copy-ready code
/* CSS */
color: #ec7dac;
background-color: #ec7dac;
/* Tailwind (arbitrary) */
class="text-[#ec7dac] bg-[#ec7dac]"
/* SCSS */
$brand: #ec7dac;
/* SwiftUI */
Color(red: 0.925, green: 0.490, blue: 0.675)
/* Android */
Color.parseColor("#ec7dac")
/* Flutter */
Color(0xFFEC7DAC)
/* Python / OpenCV (BGR) */
(172, 125, 236)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #ec7dac 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.
:root {
--brand-50: #FCF3F7;
--brand-100: #F9E7EE;
--brand-200: #F4C8DB;
--brand-300: #F19DC0;
--brand-400: #ec7dac;
--brand-500: #E23B82;
--brand-600: #D61F6C;
--brand-700: #B21A5A;
--brand-800: #8E1548;
--brand-900: #671337;
--brand-950: #400C22;
--brand: #ec7dac;
--brand-ink: #000000;
}Colors that work with #ec7dac
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #ec7dac
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #7DECBD | Directly opposite — maximum tension | |
| Analogous left | #EC7DE4 | Neighbour, quieter | |
| Analogous right | #EC867D | Neighbour, quieter | |
| Split-complement 1 | #7DEC86 | Contrast without the clash | |
| Split-complement 2 | #7DE4EC | Contrast without the clash | |
| Triadic 1 | #ACEC7D | Even thirds — balanced and loud | |
| Triadic 2 | #7DACEC | Even thirds — balanced and loud | |
| Tetradic | #E4EC7D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ec7dac text on a black background
contrast 8.10:1
#ec7dac text on a white background
contrast 2.59:1
CSS3 live lab
The quick brown fox
color: #ec7dac;
background-color: #ec7dac;
Glowing headline
text-shadow: 2px 2px 8px #ec7dac;
Soft neon halo
text-shadow: 0 0 14px rgba(236, 125, 172, 0.45);
box-shadow: 0 12px 32px -8px rgba(236, 125, 172, 0.45);
border: 3px solid #ec7dac; background: linear-gradient(135deg, #ec7dac, #EC987D);
Monochromatic scale
Palettes built from #ec7dac
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.
Closest color with a full write-up: Hot Pink (#ff69b4) — ΔE2000 4.9 away, with its history, psychology and brand usage.
#ec7dac in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#ec7dac, answered
What color is #ec7dac?
#ec7dac is a light vivid magenta / pink, closest to Hot Pink (ΔE2000 4.9). It sits at 335° on the hue wheel with 75% saturation and 71% lightness, which reads as warm.
What is the RGB value of #ec7dac?
rgb(236, 125, 172) — 236 red, 125 green and 172 blue out of 255, or 92.5% / 49% / 67.5% by channel.
Is #ec7dac a light or a dark color?
It is a mid-tone. Relative luminance is 0.3548 and perceived brightness is 67%, so black text on it reaches 8.10:1.
Should I use black or white text on #ec7dac?
Black. It scores 8.10:1 against #ec7dac, versus 2.59:1 for white — AAA at any size.
What is the complementary color of #ec7dac?
#7DECBD sits directly opposite on the wheel. Softer options are the split-complements #7DEC86 and #7DE4EC, which give the same contrast with far less vibration.
What colors go well with #ec7dac?
For interface work: #FAF4F7 as the surface, #EDC0D3 for borders, #9B4B6D for secondary text, #16B64A as an accent and #6F1038 for hover and pressed states. For a palette, the analogous pair #EC7DE4 and #EC867D stays calm, while #7DECBD is the loudest partner.
What is #ec7dac in CMYK for printing?
cmyk(0%, 47%, 27%, 8%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ec7dac warm or cool?
Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC7D83; nudged cooler, #EE7CD6.