Skip to content

#ba87bc

a balanced, soft magenta / pink · neutral · closest name: Plum

RGB
186, 135, 188
HSL
298°, 28%, 63%
CMYK
1, 28, 0, 26
Luminance
0.3140

At a glance

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

Hex
#ba87bc
Hue
298°
magenta / pink
Saturation
28%
soft
Lightness
63%
balanced
Brightness
74%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3140
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.28:1
Closest name
Plum
ΔE2000 8.5
Where it sits
Hue298° of 360°
Saturation28%
Lightness63%
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#ba87bc
RGBrgb(186, 135, 188)
HSLhsl(298, 28%, 63%)
CMYKcmyk(1%, 28%, 0%, 26%)
LABlab(62.8 28.5 -20.0)
LCHlch(62.8 34.8 324.9)
OKLCHoklch(0.691 0.095 325.3)
Decimal12224444
Display P3color(display-p3 0.729 0.529 0.737)

Copy-ready code

/* CSS */
color: #ba87bc;
background-color: #ba87bc;
/* Tailwind (arbitrary) */
class="text-[#ba87bc] bg-[#ba87bc]"
/* SCSS */
$brand: #ba87bc;
/* SwiftUI */
Color(red: 0.729, green: 0.529, blue: 0.737)
/* Android */
Color.parseColor("#ba87bc")
/* Flutter */
Color(0xFFBA87BC)
/* Python / OpenCV (BGR) */
(188, 135, 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 #ba87bc · 7.28:1
Use #000000AAA at every size.
Aa
White text · 2.88:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.28:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ba87bc as text scores 2.88:1 on white and 7.28:1 on black.

Accessibility — WCAG contrast

Aa
#ba87bc on white: 2.88:1
AA ✗ fail · AA-large · AAA
Aa
#ba87bc on black: 7.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8394BE
deuteranopia · #8F9ABA
tritanopia · #BD8C9A

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba87bc 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.

#F9F6F9
#F3ECF3
#E5D6E6
#D6B7D7
#ba87bc
#AC6FAF
#9A589D
#814983
#673B69
#4C2D4D
#2F1C30
Base = 400Lightest = 50 · #F9F6F9Darkest = 950 · #2F1C30
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F3ECF3;
  --brand-200: #E5D6E6;
  --brand-300: #D6B7D7;
  --brand-400: #ba87bc;
  --brand-500: #AC6FAF;
  --brand-600: #9A589D;
  --brand-700: #814983;
  --brand-800: #673B69;
  --brand-900: #4C2D4D;
  --brand-950: #2F1C30;
  --brand: #ba87bc;
  --brand-ink: #000000;
}

Colors that work with #ba87bc

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#F9F5FA
Tinted page background
Border#E1CBE2
Hairlines and dividers
Muted text#915293
Captions on the surface
Accent#588745
Second voice, not a rival
Dark variant#502E52
Hover, pressed, headers
Light variant#F6EFF6
Selected rows, tints
Dark surface#231424
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 #ba87bc

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

Works well for
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • 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#89BC87
Analogous left#9F87BC
Analogous right#BC87A3
Split-complement 1#A3BC87
Split-complement 2#87BC9F
Triadic 1#BCBA87
Triadic 2#87BCBA
Tetradic#BC9F87

RGB percentages

Red72.9%
Green52.9%
Blue73.7%

CMYK percentages

Cyan1.1%
Magenta28.2%
Yellow0.0%
Key (black)26.3%

Color previews

#ba87bc text on a black background

contrast 7.28:1

Card sample

#ba87bc text on a white background

contrast 2.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba87bc

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.

#ba87bc 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.

#ba87bc, answered

What color is #ba87bc?

#ba87bc is a balanced soft magenta / pink, closest to Plum (ΔE2000 8.5). It sits at 298° on the hue wheel with 28% saturation and 63% lightness, which reads as neutral.

What is the RGB value of #ba87bc?

rgb(186, 135, 188) — 186 red, 135 green and 188 blue out of 255, or 72.9% / 52.9% / 73.7% by channel.

Is #ba87bc a light or a dark color?

It is a mid-tone. Relative luminance is 0.3140 and perceived brightness is 62%, so black text on it reaches 7.28:1.

Should I use black or white text on #ba87bc?

Black. It scores 7.28:1 against #ba87bc, versus 2.88:1 for white — AAA at any size.

What is the complementary color of #ba87bc?

#89BC87 sits directly opposite on the wheel. Softer options are the split-complements #A3BC87 and #87BC9F, which give the same contrast with far less vibration.

What colors go well with #ba87bc?

For interface work: #F9F5FA as the surface, #E1CBE2 for borders, #915293 for secondary text, #588745 as an accent and #502E52 for hover and pressed states. For a palette, the analogous pair #9F87BC and #BC87A3 stays calm, while #89BC87 is the loudest partner.

What is #ba87bc in CMYK for printing?

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

Is #ba87bc 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 #BC87AB; nudged cooler, #A785BE.

Work with #ba87bc in the Color Lab