#ba2989
a dark, vivid magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #ba2989 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 | #ba2989 |
| RGB | rgb(186, 41, 137) |
| HSL | hsl(320, 64%, 45%) |
| CMYK | cmyk(0%, 78%, 26%, 27%) |
| LAB | lab(44.0 64.1 -19.0) |
| LCH | lch(44.0 66.9 343.5) |
| OKLCH | oklch(0.544 0.201 345.5) |
| Decimal | 12200329 |
| Display P3 | color(display-p3 0.729 0.161 0.537) |
Copy-ready code
/* CSS */
color: #ba2989;
background-color: #ba2989;
/* Tailwind (arbitrary) */
class="text-[#ba2989] bg-[#ba2989]"
/* SCSS */
$brand: #ba2989;
/* SwiftUI */
Color(red: 0.729, green: 0.161, blue: 0.537)
/* Android */
Color.parseColor("#ba2989")
/* Flutter */
Color(0xFFBA2989)
/* Python / OpenCV (BGR) */
(137, 41, 186)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. #ba2989 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FBF4F9;
--brand-100: #F7E8F2;
--brand-200: #F0CBE4;
--brand-300: #EBA3D2;
--brand-400: #E175BC;
--brand-500: #D647A6;
--brand-600: #ba2989;
--brand-700: #A7257B;
--brand-800: #861D62;
--brand-900: #611949;
--brand-950: #3D102E;
--brand: #ba2989;
--brand-ink: #ffffff;
}Colors that work with #ba2989
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 #ba2989
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black 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 | #29BA5A | Directly opposite — maximum tension | |
| Analogous left | #A329BA | Neighbour, quieter | |
| Analogous right | #BA2940 | Neighbour, quieter | |
| Split-complement 1 | #40BA29 | Contrast without the clash | |
| Split-complement 2 | #29BAA3 | Contrast without the clash | |
| Triadic 1 | #89BA29 | Even thirds — balanced and loud | |
| Triadic 2 | #2989BA | Even thirds — balanced and loud | |
| Tetradic | #BAA329 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ba2989 text on a black background
contrast 3.77:1
#ba2989 text on a white background
contrast 5.58:1
CSS3 live lab
The quick brown fox
color: #ba2989;
background-color: #ba2989;
Glowing headline
text-shadow: 2px 2px 8px #ba2989;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 41, 137, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 41, 137, 0.45);
border: 3px solid #ba2989; background: linear-gradient(135deg, #ba2989, #BA2A29);
Monochromatic scale
Palettes built from #ba2989
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: Mulberry (#c54b8c) — ΔE2000 7.4 away, with its history, psychology and brand usage.
#ba2989 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.
#ba2989, answered
What color is #ba2989?
#ba2989 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 2.7). It sits at 320° on the hue wheel with 64% saturation and 45% lightness, which reads as warm.
What is the RGB value of #ba2989?
rgb(186, 41, 137) — 186 red, 41 green and 137 blue out of 255, or 72.9% / 16.1% / 53.7% by channel.
Is #ba2989 a light or a dark color?
It is a dark color. Relative luminance is 0.1383 and perceived brightness is 46%, so white text on it reaches 5.58:1.
Should I use black or white text on #ba2989?
White. It scores 5.58:1 against #ba2989, versus 3.77:1 for black — AA at any size.
What is the complementary color of #ba2989?
#29BA5A sits directly opposite on the wheel. Softer options are the split-complements #40BA29 and #29BAA3, which give the same contrast with far less vibration.
What colors go well with #ba2989?
For interface work: #FAF4F8 as the surface, #EDC0DD for borders, #9B4B80 for secondary text, #20AC2D as an accent and #68174D for hover and pressed states. For a palette, the analogous pair #A329BA and #BA2940 stays calm, while #29BA5A is the loudest partner.
What is #ba2989 in CMYK for printing?
cmyk(0%, 78%, 26%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ba2989 warm or cool?
Warm — it scores 39 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA2954; nudged cooler, #B827BC.