Skip to content

#ba7fba

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

RGB
186, 127, 186
HSL
300°, 30%, 61%
CMYK
0, 32, 0, 27
Luminance
0.2916

At a glance

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

Hex
#ba7fba
Hue
300°
magenta / pink
Saturation
30%
soft
Lightness
61%
balanced
Brightness
73%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2916
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
6.83:1
Closest name
Orchid
ΔE2000 8
Where it sits
Hue300° of 360°
Saturation30%
Lightness61%
Temperature
Warm ← → Cool50% 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#ba7fba
RGBrgb(186, 127, 186)
HSLhsl(300, 30%, 61%)
CMYKcmyk(0%, 32%, 0%, 27%)
LABlab(60.9 32.5 -21.8)
LCHlch(60.9 39.2 326.2)
OKLCHoklch(0.676 0.108 326.7)
Decimal12222394
Display P3color(display-p3 0.729 0.498 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fba on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fba on black: 6.83:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7B8EBC
deuteranopia · #8996B8
tritanopia · #BE8494

Color scale — 50 to 950

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

#F9F6F9
#F3ECF3
#E7D5E7
#D8B6D8
#C492C4
#ba7fba
#9F569F
#844884
#6A396A
#4E2C4E
#311C31
Base = 500Lightest = 50 · #F9F6F9Darkest = 950 · #311C31
:root {
  --brand-50: #F9F6F9;
  --brand-100: #F3ECF3;
  --brand-200: #E7D5E7;
  --brand-300: #D8B6D8;
  --brand-400: #C492C4;
  --brand-500: #ba7fba;
  --brand-600: #9F569F;
  --brand-700: #844884;
  --brand-800: #6A396A;
  --brand-900: #4E2C4E;
  --brand-950: #311C31;
  --brand: #ba7fba;
  --brand-ink: #000000;
}

Colors that work with #ba7fba

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#FAF5FA
Tinted page background
Border#E2CAE2
Hairlines and dividers
Muted text#955095
Captions on the surface
Accent#558943
Second voice, not a rival
Dark variant#532D53
Hover, pressed, headers
Light variant#F6EEF6
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 #ba7fba

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#7FBA7F
Analogous left#9D7FBA
Analogous right#BA7F9D
Split-complement 1#9DBA7F
Split-complement 2#7FBA9D
Triadic 1#BABA7F
Triadic 2#7FBABA
Tetradic#BA9D7F

RGB percentages

Red72.9%
Green49.8%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta31.7%
Yellow0.0%
Key (black)27.1%

Color previews

#ba7fba text on a black background

contrast 6.83:1

Card sample

#ba7fba text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fba

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.

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

#ba7fba, answered

What color is #ba7fba?

#ba7fba is a balanced soft magenta / pink, closest to Orchid (ΔE2000 8). It sits at 300° on the hue wheel with 30% saturation and 61% lightness, which reads as neutral.

What is the RGB value of #ba7fba?

rgb(186, 127, 186) — 186 red, 127 green and 186 blue out of 255, or 72.9% / 49.8% / 72.9% by channel.

Is #ba7fba a light or a dark color?

It is a mid-tone. Relative luminance is 0.2916 and perceived brightness is 60%, so black text on it reaches 6.83:1.

Should I use black or white text on #ba7fba?

Black. It scores 6.83:1 against #ba7fba, versus 3.07:1 for white — AA at any size.

What is the complementary color of #ba7fba?

#7FBA7F sits directly opposite on the wheel. Softer options are the split-complements #9DBA7F and #7FBA9D, which give the same contrast with far less vibration.

What colors go well with #ba7fba?

For interface work: #FAF5FA as the surface, #E2CAE2 for borders, #955095 for secondary text, #558943 as an accent and #532D53 for hover and pressed states. For a palette, the analogous pair #9D7FBA and #BA7F9D stays calm, while #7FBA7F is the loudest partner.

What is #ba7fba in CMYK for printing?

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

Is #ba7fba warm or cool?

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

Work with #ba7fba in the Color Lab