#ba4cb3
a balanced, soft magenta / pink · neutral · closest name: Medium Orchid
Token name suggestion: Atlas Fuchsia
#ba4cb3 is a balanced soft magenta / pink, 304° on the wheel and 48/100 on the cool side. Put black text on it (4.77:1). As text it scores 4.40:1 on white — large text only. Nearest name is Medium Orchid, nearest Tailwind family is fuchsia.
At a glance
Every number on this page in one read: what #ba4cb3 is made of, how bright it looks, and which way it leans.
Left edge is grey, right edge is full chroma; top is white, bottom is black. The dot is #ba4cb3.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Green carries most of what the eye calls brightness — that is why WCAG weights it 0.7152.
Every format
| HEX | #ba4cb3 |
| HEX (8-digit) | #ba4cb3ff |
| RGB | rgb(186, 76, 179) |
| RGBA | rgba(186, 76, 179, 1) |
| HSL | hsl(304, 44%, 51%) |
| HSV / HSB | hsv(304, 59%, 73%) |
| HWB | hwb(304 30% 27%) |
| CMYK | cmyk(0%, 59%, 4%, 27%) |
| LAB | lab(50.5 57.3 -33.9) |
| LCH | lch(50.5 66.6 329.4) |
| OKLCH | oklch(0.598 0.187 330.2) |
| XYZ (D65) | xyz(30.97, 18.86, 44.65) |
| Decimal | 12209331 |
| Display P3 | color(display-p3 0.729 0.298 0.702) |
| Web-safe | #CC33CC |
Copy-ready code
/* CSS */
color: #ba4cb3;
background-color: #ba4cb3;
/* CSS custom property */
--brand: #ba4cb3;
/* Tailwind (arbitrary) */
class="text-[#ba4cb3] bg-[#ba4cb3]"
/* SCSS */
$brand: #ba4cb3;
/* SwiftUI */
Color(red: 0.729, green: 0.298, blue: 0.702)
/* UIKit */
UIColor(red: 0.729, green: 0.298, blue: 0.702, alpha: 1)
/* Android XML */
<color name="brand">#BA4CB3</color>
/* Android Compose */
Color(0xFFBA4CB3)
/* Flutter */
Color(0xFFBA4CB3)
/* Python / OpenCV (BGR) */
(179, 76, 186)
/* Python / PIL (RGB) */
(186, 76, 179)
/* Java AWT */
new Color(186, 76, 179)
/* .NET */
Color.FromArgb(255, 186, 76, 179)
/* OpenGL / Unity (0–1) */
(0.7294f, 0.2980f, 0.7020f, 1f)
/* LaTeX */
\definecolor{brand}{RGB}{186,76,179}/* mix without leaving CSS */ background: color-mix(in oklab, #ba4cb3 85%, white); border-color: color-mix(in oklab, #ba4cb3 40%, transparent); /* theme-aware in one line */ color: light-dark(#5C2358, #EED3EC); /* relative colour syntax */ --hover: hsl(from #ba4cb3 h s calc(l - 7));
Design tokens
The same ramp in the four formats a team actually needs. Paste one and the whole palette lands with it.
:root {
--brand-50: #FAF5FA;
--brand-100: #F5EAF4;
--brand-200: #EBD1E9;
--brand-300: #E0AEDD;
--brand-400: #D085CB;
--brand-500: #C15DBA;
--brand-600: #ba4cb3;
--brand-700: #93398E;
--brand-800: #762D71;
--brand-900: #562453;
--brand-950: #361734;
--brand: #ba4cb3;
--brand-ink: #000000;
--brand-surface: #FAF4FA;
--brand-border: #E8C4E6;
--brand-hover: #A33F9D;
--brand-pressed: #8A3584;
}
@media (prefers-color-scheme: dark) {
:root {
--brand-surface: #241423;
--brand-ink: #EED3EC;
}
}theme: {
extend: {
colors: {
brand: {
50: '#FAF5FA',
100: '#F5EAF4',
200: '#EBD1E9',
300: '#E0AEDD',
400: '#D085CB',
500: '#C15DBA',
600: '#ba4cb3',
700: '#93398E',
800: '#762D71',
900: '#562453',
950: '#361734',
DEFAULT: '#ba4cb3',
},
},
},
}$brand: (
'50': #FAF5FA,
'100': #F5EAF4,
'200': #EBD1E9,
'300': #E0AEDD,
'400': #D085CB,
'500': #C15DBA,
'600': #ba4cb3,
'700': #93398E,
'800': #762D71,
'900': #562453,
'950': #361734,
);
$brand-base: #ba4cb3;
$brand-ink: #000000;
@function brand($step) { @return map-get($brand, $step); }{
"color": {
"brand": {
"50": { "$value": "#FAF5FA", "$type": "color" },
"100": { "$value": "#F5EAF4", "$type": "color" },
"200": { "$value": "#EBD1E9", "$type": "color" },
"300": { "$value": "#E0AEDD", "$type": "color" },
"400": { "$value": "#D085CB", "$type": "color" },
"500": { "$value": "#C15DBA", "$type": "color" },
"600": { "$value": "#ba4cb3", "$type": "color" },
"700": { "$value": "#93398E", "$type": "color" },
"800": { "$value": "#762D71", "$type": "color" },
"900": { "$value": "#562453", "$type": "color" },
"950": { "$value": "#361734", "$type": "color" }
},
"brandInk": { "$value": "#000000", "$type": "color" }
}
}Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Make it accessible
A contrast checker tells you that you failed. This tells you what to ship instead — same hue, same saturation, lightness moved only as far as WCAG demands.
Large text — 24px regular or 18.66px bold and above — only needs 3:1, so #BA4CB3 is enough for headings on white. Non-text elements such as icons, chart strokes and focus rings also sit at 3:1 under WCAG 2.2 (1.4.11).
Accessibility — WCAG contrast
Contrast is symmetric, so each row covers both directions: #ba4cb3 as text on that neutral, and that neutral as text on #ba4cb3.
| Neutral | Ratio | Verdict | Both directions |
|---|---|---|---|
| White#ffffff | 4.40:1 | AAAA lgAAA | AaAa |
| Slate 50#f8fafc | 4.21:1 | AAAA lgAAA | AaAa |
| Slate 100#f1f5f9 | 4.02:1 | AAAA lgAAA | AaAa |
| Slate 200#e2e8f0 | 3.57:1 | AAAA lgAAA | AaAa |
| Slate 300#cbd5e1 | 2.96:1 | AAAA lgAAA | AaAa |
| Slate 400#94a3b8 | 1.72:1 | AAAA lgAAA | AaAa |
| Slate 500#64748b | 1.08:1 | AAAA lgAAA | AaAa |
| Slate 600#475569 | 1.72:1 | AAAA lgAAA | AaAa |
| Slate 700#334155 | 2.35:1 | AAAA lgAAA | AaAa |
| Slate 800#1e293b | 3.32:1 | AAAA lgAAA | AaAa |
| Slate 900#0f172a | 4.06:1 | AAAA lgAAA | AaAa |
| Black#000000 | 4.77:1 | AAAA lgAAA | AaAa |
Roughly one man in twelve has some form of colour vision deficiency. If any of the three panels above is hard to tell apart from a neighbouring colour in your palette, add a shape, an icon or a label so the meaning does not rest on hue alone.
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #ba4cb3 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.
The same eleven steps expressed in OKLCH, where equal lightness numbers actually look equally spaced. HSL ramps go muddy in the yellows and washed out in the blues; this one does not. Modern browsers render it natively — the hex ramp above is the fallback.
:root {
--brand-50: oklch(0.97 0.047 330.2);
--brand-100: oklch(0.94 0.075 330.2);
--brand-200: oklch(0.88 0.112 330.2);
--brand-300: oklch(0.80 0.146 330.2);
--brand-400: oklch(0.72 0.172 330.2);
--brand-500: oklch(0.64 0.187 330.2);
--brand-600: oklch(0.56 0.187 330.2);
--brand-700: oklch(0.48 0.176 330.2);
--brand-800: oklch(0.40 0.157 330.2);
--brand-900: oklch(0.32 0.131 330.2);
--brand-950: oklch(0.24 0.103 330.2);
}Colors that work with #ba4cb3
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.
In real components
The same eight roles, wired into the interface patterns you will actually build with them. Every state below is a computed value, not a mock-up.
Focus ring uses the light variant so the field still reads as one shape.
The file stays available for seven days. Download it before it expires.
How to use #ba4cb3
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
- ✓Chart series and data categories
- ⚠Small text on white — under 4.5:1
- ⚠Pairing with a same-lightness hue — edges vibrate
Meaning and mood
What a colour in this family tends to signal, and how this particular chroma and lightness change the reading.
Pink is the fastest way to signal that a product is not another enterprise dashboard. It carries beauty, fashion and culture brands.
The muted chroma softens the association — it reads considered rather than loud, which suits long-form and data-heavy screens. The mid lightness keeps it versatile in both themes.
Strong gendered associations in some markets — test it with the audience you actually have.
- FormalityMedium
- EnergyMedium
- Weight49/100
- TemperatureNeutral
- ApproachabilityBalanced
Colour associations are cultural and vary by market. Treat these as a starting point for a conversation with your audience, not a finding about them.
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 | #4CBA53 | Directly opposite — maximum tension | |
| Analogous left | #8A4CBA | Neighbour, quieter | |
| Analogous right | #BA4C7C | Neighbour, quieter | |
| Split-complement 1 | #7CBA4C | Contrast without the clash | |
| Split-complement 2 | #4CBA8A | Contrast without the clash | |
| Triadic 1 | #B3BA4C | Even thirds — balanced and loud | |
| Triadic 2 | #4CB3BA | Even thirds — balanced and loud | |
| Tetradic | #BA8A4C | Fourth corner of the square scheme |
#ba4cb3 sits at 304°. Every dot is a harmony position and links to its own page in the table alongside.
RGB percentages
CMYK percentages
Total ink coverage is 90%. Most commercial presses cap around 300% — above that, sheets stop drying properly.
Color previews
#ba4cb3 text on a black background
contrast 4.77:1
#ba4cb3 text on a white background
contrast 4.40:1
#ba4cb3 on grey
4.02:1
#ba4cb3 on its own surface
4.06:1
#ba4cb3 on its dark surface
3.98:1
CSS3 live lab
The quick brown fox
color: #ba4cb3;
background-color: #ba4cb3;
Glowing headline
text-shadow: 2px 2px 8px #ba4cb3;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 76, 179, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 76, 179, 0.45);
border: 3px solid #ba4cb3; background: linear-gradient(135deg, #ba4cb3, #BA4C6A);
Gradient headline
background: linear-gradient(90deg, #ba4cb3, #BA4C4E); -webkit-background-clip: text; color: transparent;
outline: 2px solid #ba4cb3; outline-offset: 3px;
Marked up text
text-decoration-color: #ba4cb3; caret-color: #ba4cb3;
border-left: 4px solid #ba4cb3;
background: #F8EDF7; box-shadow: inset 0 0 0 2px #ba4cb3;
background: conic-gradient(#ba4cb3 68%, #e2e8f0 0);
Transparency
What each alpha value actually composites to. The top row is #ba4cb3 over white; the bottom row is the same alpha over a checkerboard, so you can see what survives on a photo or a video.
Bottom row of hexes is the flattened result over white — use those when a design tool refuses transparency, or when you need a solid fallback.
rgba(186, 76, 179, 0.5) rgb(186 76 179 / 50%) #ba4cb380 hsl(304 44% 51% / 50%) color-mix(in srgb, #ba4cb3 50%, transparent)
| Alpha | 8-digit hex | Flat on white |
|---|---|---|
| 10% | #ba4cb31a | #F8EDF7 |
| 20% | #ba4cb333 | #F1DBF0 |
| 40% | #ba4cb366 | #E3B7E1 |
| 60% | #ba4cb399 | #D694D1 |
| 80% | #ba4cb3cc | #C870C2 |
Gradients from #ba4cb3
Six recipes, each built from this hex and shown with the exact CSS that produced it.
background: linear-gradient(135deg, #CB78C6, #ba4cb3 45%, #5C2358);
background: linear-gradient(120deg, #ba4cb3, #A74054);
background: linear-gradient(90deg, #ba4cb3, #4CBA53);
background: radial-gradient(120% 120% at 20% 0%, #D48ECF 0%, #ba4cb3 45%, #5C2358 100%);
background: linear-gradient(180deg, #FAF4FA, #ffffff);
background: radial-gradient(60% 60% at 15% 20%, #9B71C8 0%, transparent 60%), radial-gradient(55% 55% at 85% 15%, #C36284 0%, transparent 60%), radial-gradient(70% 70% at 50% 95%, #5C2358 0%, transparent 65%), #ba4cb3;
Monochromatic scale
Palettes built from #ba4cb3
Shades — darker
Tints — lighter
Tones — desaturated
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 9.4 away, with its history, psychology and brand usage.
#ba4cb3 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.
Holds up across typical panel gamma. Still worth checking on an uncalibrated laptop, where mid-tones shift most.
Usable as-is on a dark surface at 4.77:1.
Explore nearby colors
Small, deliberate steps away from this hex — useful when you are hunting for the version of a colour that finally feels right.
#ba4cb3, answered
What color is #ba4cb3?
#ba4cb3 is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 5.9). It sits at 304° on the hue wheel with 44% saturation and 51% lightness, which reads as neutral.
What is the RGB value of #ba4cb3?
rgb(186, 76, 179) — 186 red, 76 green and 179 blue out of 255, or 72.9% / 29.8% / 70.2% by channel.
What is #ba4cb3 in HSL and HSV?
hsl(304, 44%, 51%) and hsv(304, 59%, 73%). HSL is what CSS takes; HSV is what your design tool's picker shows, which is why the saturation numbers rarely match.
Is #ba4cb3 a light or a dark color?
It is a mid-tone. Relative luminance is 0.1886 and perceived brightness is 52%, so black text on it reaches 4.77:1.
Should I use black or white text on #ba4cb3?
Black. It scores 4.77:1 against #ba4cb3, versus 4.40:1 for white — AA at any size.
Is #ba4cb3 accessible on a white background?
#ba4cb3 on white scores 4.40:1, which only clears AA for large text — 18.66px bold or 24px regular and up. Darken it to #B948B2 to reach 4.5:1, or #8A3584 for 7:1.
What is the complementary color of #ba4cb3?
#4CBA53 sits directly opposite on the wheel. Softer options are the split-complements #7CBA4C and #4CBA8A, which give the same contrast with far less vibration.
What colors go well with #ba4cb3?
For interface work: #FAF4FA as the surface, #E8C4E6 for borders, #9B4B96 for secondary text, #479735 as an accent and #5C2358 for hover and pressed states. For a palette, the analogous pair #8A4CBA and #BA4C7C stays calm, while #4CBA53 is the loudest partner.
What is #ba4cb3 in CMYK for printing?
cmyk(0%, 59%, 4%, 27%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ba4cb3 warm or cool?
Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA4C8B; nudged cooler, #9A4ABD.
Which Tailwind color is closest to #ba4cb3?
The fuchsia family — its 500 step is #d946ef, ΔE2000 9.8 away. That is a visible difference, so define #ba4cb3 as a custom token rather than reaching for the built-in.
How do I use #ba4cb3 in Tailwind CSS?
Inline it as an arbitrary value with bg-[#ba4cb3] or text-[#ba4cb3], or register the whole ramp under theme.extend.colors.brand so you get bg-brand-500 and friends. The generated 50–950 scale on this page is ready to paste into your config.
What is #ba4cb3 with 50% opacity?
rgba(186, 76, 179, 0.5), or #ba4cb380 in eight-digit hex. Over white that composites to #DDA6D9; over black, #5D265A.
Is #ba4cb3 a web-safe color?
No. The nearest web-safe colour is #CC33CC, ΔE2000 5 away. The palette only matters for legacy displays and some email clients now.
What does the color #ba4cb3 mean?
As a magenta / pink, it reads expressive, youthful, warm. Pink is the fastest way to signal that a product is not another enterprise dashboard. It carries beauty, fashion and culture brands. At this moderate chroma the association is present but not shouted.
What gradient works with #ba4cb3?
The safest is same-hue elevation: linear-gradient(135deg, #CB78C6, #ba4cb3 45%, #5C2358). For more colour, a short hue run to #A74054 keeps it rich without turning muddy.
Work with #ba4cb3 in the Color Lab
Every tool opens with this colour already loaded.
Every value on this page is computed from #ba4cb3 at request time — conversions, contrast ratios and ΔE distances are calculated, never looked up.