#ec5ac2
a balanced, electric magenta / pink · warm · closest name: Orchid
At a glance
Every number on this page in one read: what #ec5ac2 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 | #ec5ac2 |
| RGB | rgb(236, 90, 194) |
| HSL | hsl(317, 79%, 64%) |
| CMYK | cmyk(0%, 62%, 18%, 8%) |
| LAB | lab(60.8 67.0 -26.0) |
| LCH | lch(60.8 71.9 338.8) |
| OKLCH | oklch(0.690 0.211 340.7) |
| Decimal | 15489730 |
| Display P3 | color(display-p3 0.925 0.353 0.761) |
Copy-ready code
/* CSS */
color: #ec5ac2;
background-color: #ec5ac2;
/* Tailwind (arbitrary) */
class="text-[#ec5ac2] bg-[#ec5ac2]"
/* SCSS */
$brand: #ec5ac2;
/* SwiftUI */
Color(red: 0.925, green: 0.353, blue: 0.761)
/* Android */
Color.parseColor("#ec5ac2")
/* Flutter */
Color(0xFFEC5AC2)
/* Python / OpenCV (BGR) */
(194, 90, 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. #ec5ac2 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: #FCF3F9;
--brand-100: #F9E6F4;
--brand-200: #F5C7E8;
--brand-300: #F39ADA;
--brand-400: #ec5ac2;
--brand-500: #E836B4;
--brand-600: #DB19A3;
--brand-700: #B71588;
--brand-800: #92116D;
--brand-900: #6A1150;
--brand-950: #420A32;
--brand: #ec5ac2;
--brand-ink: #000000;
}Colors that work with #ec5ac2
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 #ec5ac2
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #5AEC84 | Directly opposite — maximum tension | |
| Analogous left | #CD5AEC | Neighbour, quieter | |
| Analogous right | #EC5A79 | Neighbour, quieter | |
| Split-complement 1 | #79EC5A | Contrast without the clash | |
| Split-complement 2 | #5AECCD | Contrast without the clash | |
| Triadic 1 | #C2EC5A | Even thirds — balanced and loud | |
| Triadic 2 | #5AC2EC | Even thirds — balanced and loud | |
| Tetradic | #ECCD5A | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ec5ac2 text on a black background
contrast 6.81:1
#ec5ac2 text on a white background
contrast 3.08:1
CSS3 live lab
The quick brown fox
color: #ec5ac2;
background-color: #ec5ac2;
Glowing headline
text-shadow: 2px 2px 8px #ec5ac2;
Soft neon halo
text-shadow: 0 0 14px rgba(236, 90, 194, 0.45);
box-shadow: 0 12px 32px -8px rgba(236, 90, 194, 0.45);
border: 3px solid #ec5ac2; background: linear-gradient(135deg, #ec5ac2, #EC5A61);
Monochromatic scale
Palettes built from #ec5ac2
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: Orchid (#da70d6) — ΔE2000 5.9 away, with its history, psychology and brand usage.
#ec5ac2 in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#ec5ac2, answered
What color is #ec5ac2?
#ec5ac2 is a balanced electric magenta / pink, closest to Orchid (ΔE2000 5.9). It sits at 317° on the hue wheel with 79% saturation and 64% lightness, which reads as warm.
What is the RGB value of #ec5ac2?
rgb(236, 90, 194) — 236 red, 90 green and 194 blue out of 255, or 92.5% / 35.3% / 76.1% by channel.
Is #ec5ac2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2904 and perceived brightness is 63%, so black text on it reaches 6.81:1.
Should I use black or white text on #ec5ac2?
Black. It scores 6.81:1 against #ec5ac2, versus 3.08:1 for white — AA at any size.
What is the complementary color of #ec5ac2?
#5AEC84 sits directly opposite on the wheel. Softer options are the split-complements #79EC5A and #5AECCD, which give the same contrast with far less vibration.
What colors go well with #ec5ac2?
For interface work: #FAF4F9 as the surface, #EDC0E0 for borders, #9B4B84 for secondary text, #11BB17 as an accent and #720D55 for hover and pressed states. For a palette, the analogous pair #CD5AEC and #EC5A79 stays calm, while #5AEC84 is the loudest partner.
What is #ec5ac2 in CMYK for printing?
cmyk(0%, 62%, 18%, 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 #ec5ac2 warm or cool?
Warm — it scores 40 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC5A8C; nudged cooler, #E258EE.