Skip to content

#ba8eb1

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

RGB
186, 142, 177
HSL
312°, 24%, 64%
CMYK
0, 24, 5, 27
Luminance
0.3296

At a glance

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

Hex
#ba8eb1
Hue
312°
magenta / pink
Saturation
24%
soft
Lightness
64%
balanced
Brightness
73%
HSV value
Perceived
63%
weighted brightness
Luminance
0.3296
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
7.59:1
Closest name
Plum
ΔE2000 9.4
Where it sits
Hue312° of 360°
Saturation24%
Lightness64%
Temperature
Warm ← → Cool45% 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#ba8eb1
RGBrgb(186, 142, 177)
HSLhsl(312, 24%, 64%)
CMYKcmyk(0%, 24%, 5%, 27%)
LABlab(64.1 22.5 -11.9)
LCHlch(64.1 25.4 332.2)
OKLCHoklch(0.700 0.071 333.6)
Decimal12226225
Display P3color(display-p3 0.729 0.557 0.694)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba8eb1 on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#ba8eb1 on black: 7.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #8E98B2
deuteranopia · #989EB0
tritanopia · #BE909A

Color scale — 50 to 950

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

#F9F6F8
#F3EDF1
#E5D7E2
#D4B9CF
#ba8eb1
#AA749F
#985D8C
#7F4D75
#653E5D
#4B3045
#2F1E2B
Base = 400Lightest = 50 · #F9F6F8Darkest = 950 · #2F1E2B
:root {
  --brand-50: #F9F6F8;
  --brand-100: #F3EDF1;
  --brand-200: #E5D7E2;
  --brand-300: #D4B9CF;
  --brand-400: #ba8eb1;
  --brand-500: #AA749F;
  --brand-600: #985D8C;
  --brand-700: #7F4D75;
  --brand-800: #653E5D;
  --brand-900: #4B3045;
  --brand-950: #2F1E2B;
  --brand: #ba8eb1;
  --brand-ink: #000000;
}

Colors that work with #ba8eb1

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#F9F5F8
Tinted page background
Border#E0CCDC
Hairlines and dividers
Muted text#8F5783
Captions on the surface
Accent#4C8349
Second voice, not a rival
Dark variant#4F3049
Hover, pressed, headers
Light variant#F5EFF4
Selected rows, tints
Dark surface#231520
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 #ba8eb1

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#8EBA97
Analogous left#AD8EBA
Analogous right#BA8E9B
Split-complement 1#9BBA8E
Split-complement 2#8EBAAD
Triadic 1#B1BA8E
Triadic 2#8EB1BA
Tetradic#BAAD8E

RGB percentages

Red72.9%
Green55.7%
Blue69.4%

CMYK percentages

Cyan0.0%
Magenta23.7%
Yellow4.8%
Key (black)27.1%

Color previews

#ba8eb1 text on a black background

contrast 7.59:1

Card sample

#ba8eb1 text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba8eb1

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.

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

#ba8eb1, answered

What color is #ba8eb1?

#ba8eb1 is a balanced soft magenta / pink, closest to Plum (ΔE2000 9.4). It sits at 312° on the hue wheel with 24% saturation and 64% lightness, which reads as neutral.

What is the RGB value of #ba8eb1?

rgb(186, 142, 177) — 186 red, 142 green and 177 blue out of 255, or 72.9% / 55.7% / 69.4% by channel.

Is #ba8eb1 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3296 and perceived brightness is 63%, so black text on it reaches 7.59:1.

Should I use black or white text on #ba8eb1?

Black. It scores 7.59:1 against #ba8eb1, versus 2.77:1 for white — AAA at any size.

What is the complementary color of #ba8eb1?

#8EBA97 sits directly opposite on the wheel. Softer options are the split-complements #9BBA8E and #8EBAAD, which give the same contrast with far less vibration.

What colors go well with #ba8eb1?

For interface work: #F9F5F8 as the surface, #E0CCDC for borders, #8F5783 for secondary text, #4C8349 as an accent and #4F3049 for hover and pressed states. For a palette, the analogous pair #AD8EBA and #BA8E9B stays calm, while #8EBA97 is the loudest partner.

What is #ba8eb1 in CMYK for printing?

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

Is #ba8eb1 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA8EA1; nudged cooler, #B48CBC.

Work with #ba8eb1 in the Color Lab