Skip to content

#ba4cbf

a balanced, vivid magenta / pink · neutral · closest name: Medium Orchid

RGB
186, 76, 191
HSL
297°, 47%, 52%
CMYK
3, 60, 0, 25
Luminance
0.1937

At a glance

Every number on this page in one read: what #ba4cbf is made of, how bright it looks, and which way it leans.

Hex
#ba4cbf
Hue
297°
magenta / pink
Saturation
47%
vivid
Lightness
52%
balanced
Brightness
75%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1937
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.87:1
Closest name
Medium Orchid
ΔE2000 3.9
Where it sits
Hue297° of 360°
Saturation47%
Lightness52%
Temperature
Warm ← → Cool51% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba4cbf
RGBrgb(186, 76, 191)
HSLhsl(297, 47%, 52%)
CMYKcmyk(3%, 60%, 0%, 25%)
LABlab(51.1 59.4 -39.9)
LCHlch(51.1 71.6 326.1)
OKLCHoklch(0.604 0.197 325.9)
Decimal12209343
Display P3color(display-p3 0.729 0.298 0.749)

Copy-ready code

/* CSS */
color: #ba4cbf;
background-color: #ba4cbf;
/* Tailwind (arbitrary) */
class="text-[#ba4cbf] bg-[#ba4cbf]"
/* SCSS */
$brand: #ba4cbf;
/* SwiftUI */
Color(red: 0.729, green: 0.298, blue: 0.749)
/* Android */
Color.parseColor("#ba4cbf")
/* Flutter */
Color(0xFFBA4CBF)
/* Python / OpenCV (BGR) */
(191, 76, 186)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #ba4cbf · 4.87:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.31:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.87:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba4cbf as text scores 4.31:1 on white and 4.87:1 on black.

Accessibility — WCAG contrast

Aa
#ba4cbf on white: 4.31:1
AA ✗ fail · AA-large · AAA
Aa
#ba4cbf on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3B71C3
deuteranopia · #637FBC
tritanopia · #BE5B7F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba4cbf is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF5FA
#F5EAF5
#EAD0EC
#DFACE1
#CF83D3
#ba4cbf
#AF41B4
#923696
#752B78
#562358
#351637
Base = 500Lightest = 50 · #FAF5FADarkest = 950 · #351637
:root {
  --brand-50: #FAF5FA;
  --brand-100: #F5EAF5;
  --brand-200: #EAD0EC;
  --brand-300: #DFACE1;
  --brand-400: #CF83D3;
  --brand-500: #ba4cbf;
  --brand-600: #AF41B4;
  --brand-700: #923696;
  --brand-800: #752B78;
  --brand-900: #562358;
  --brand-950: #351637;
  --brand: #ba4cbf;
  --brand-ink: #000000;
}

Colors that work with #ba4cbf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#E8C3E9
Hairlines and dividers
Muted text#974B9B
Captions on the surface
Accent#519A32
Second voice, not a rival
Dark variant#5B225E
Hover, pressed, headers
Light variant#F8ECF8
Selected rows, tints
Dark surface#241424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #ba4cbf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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#51BF4C
Analogous left#814CBF
Analogous right#BF4C8B
Split-complement 1#8BBF4C
Split-complement 2#4CBF81
Triadic 1#BFBA4C
Triadic 2#4CBFBA
Tetradic#BF814C

RGB percentages

Red72.9%
Green29.8%
Blue74.9%

CMYK percentages

Cyan2.6%
Magenta60.2%
Yellow0.0%
Key (black)25.1%

Color previews

#ba4cbf text on a black background

contrast 4.87:1

Card sample

#ba4cbf text on a white background

contrast 4.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ba4cbf;
Background color
Panel with #ba4cbf background
background-color: #ba4cbf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ba4cbf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 76, 191, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 76, 191, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4cbf;
background: linear-gradient(135deg, #ba4cbf, #BF4C77);

Monochromatic scale

Palettes built from #ba4cbf

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.

#ba4cbf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ba4cbf, answered

What color is #ba4cbf?

#ba4cbf is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 3.9). It sits at 297° on the hue wheel with 47% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #ba4cbf?

rgb(186, 76, 191) — 186 red, 76 green and 191 blue out of 255, or 72.9% / 29.8% / 74.9% by channel.

Is #ba4cbf a light or a dark color?

It is a mid-tone. Relative luminance is 0.1937 and perceived brightness is 52%, so black text on it reaches 4.87:1.

Should I use black or white text on #ba4cbf?

Black. It scores 4.87:1 against #ba4cbf, versus 4.31:1 for white — AA at any size.

What is the complementary color of #ba4cbf?

#51BF4C sits directly opposite on the wheel. Softer options are the split-complements #8BBF4C and #4CBF81, which give the same contrast with far less vibration.

What colors go well with #ba4cbf?

For interface work: #FAF4FA as the surface, #E8C3E9 for borders, #974B9B for secondary text, #519A32 as an accent and #5B225E for hover and pressed states. For a palette, the analogous pair #814CBF and #BF4C8B stays calm, while #51BF4C is the loudest partner.

What is #ba4cbf in CMYK for printing?

cmyk(3%, 60%, 0%, 25%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ba4cbf warm or cool?

Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BF4C9A; nudged cooler, #904AC1.

Work with #ba4cbf in the Color Lab