#ba4eaf
a balanced, soft magenta / pink · neutral · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #ba4eaf is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #ba4eaf |
| RGB | rgb(186, 78, 175) |
| HSL | hsl(306, 44%, 52%) |
| CMYK | cmyk(0%, 58%, 6%, 27%) |
| LAB | lab(50.7 55.7 -31.3) |
| LCH | lch(50.7 63.9 330.7) |
| OKLCH | oklch(0.598 0.181 331.7) |
| Decimal | 12209839 |
| Display P3 | color(display-p3 0.729 0.306 0.686) |
Copy-ready code
/* CSS */
color: #ba4eaf;
background-color: #ba4eaf;
/* Tailwind (arbitrary) */
class="text-[#ba4eaf] bg-[#ba4eaf]"
/* SCSS */
$brand: #ba4eaf;
/* SwiftUI */
Color(red: 0.729, green: 0.306, blue: 0.686)
/* Android */
Color.parseColor("#ba4eaf")
/* Flutter */
Color(0xFFBA4EAF)
/* Python / OpenCV (BGR) */
(175, 78, 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. #ba4eaf 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: #FAF5F9;
--brand-100: #F5EAF4;
--brand-200: #EBD1E8;
--brand-300: #E0AEDB;
--brand-400: #D086C8;
--brand-500: #C05EB6;
--brand-600: #ba4eaf;
--brand-700: #93398A;
--brand-800: #752E6E;
--brand-900: #562451;
--brand-950: #361733;
--brand: #ba4eaf;
--brand-ink: #000000;
}Colors that work with #ba4eaf
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 #ba4eaf
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #4EBA59 | Directly opposite — maximum tension | |
| Analogous left | #8F4EBA | Neighbour, quieter | |
| Analogous right | #BA4E79 | Neighbour, quieter | |
| Split-complement 1 | #79BA4E | Contrast without the clash | |
| Split-complement 2 | #4EBA8F | Contrast without the clash | |
| Triadic 1 | #AFBA4E | Even thirds — balanced and loud | |
| Triadic 2 | #4EAFBA | Even thirds — balanced and loud | |
| Tetradic | #BA8F4E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ba4eaf text on a black background
contrast 4.80:1
#ba4eaf text on a white background
contrast 4.38:1
CSS3 live lab
The quick brown fox
color: #ba4eaf;
background-color: #ba4eaf;
Glowing headline
text-shadow: 2px 2px 8px #ba4eaf;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 78, 175, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 78, 175, 0.45);
border: 3px solid #ba4eaf; background: linear-gradient(135deg, #ba4eaf, #BA4E67);
Monochromatic scale
Palettes built from #ba4eaf
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 8.6 away, with its history, psychology and brand usage.
#ba4eaf 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.
#ba4eaf, answered
What color is #ba4eaf?
#ba4eaf is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 6.6). It sits at 306° on the hue wheel with 44% saturation and 52% lightness, which reads as neutral.
What is the RGB value of #ba4eaf?
rgb(186, 78, 175) — 186 red, 78 green and 175 blue out of 255, or 72.9% / 30.6% / 68.6% by channel.
Is #ba4eaf a light or a dark color?
It is a mid-tone. Relative luminance is 0.1898 and perceived brightness is 52%, so black text on it reaches 4.80:1.
Should I use black or white text on #ba4eaf?
Black. It scores 4.80:1 against #ba4eaf, versus 4.38:1 for white — AA at any size.
What is the complementary color of #ba4eaf?
#4EBA59 sits directly opposite on the wheel. Softer options are the split-complements #79BA4E and #4EBA8F, which give the same contrast with far less vibration.
What colors go well with #ba4eaf?
For interface work: #FAF4FA as the surface, #E8C4E4 for borders, #9B4B93 for secondary text, #449735 as an accent and #5C2456 for hover and pressed states. For a palette, the analogous pair #8F4EBA and #BA4E79 stays calm, while #4EBA59 is the loudest partner.
What is #ba4eaf in CMYK for printing?
cmyk(0%, 58%, 6%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ba4eaf warm or cool?
Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA4E88; nudged cooler, #9F4CBD.