Skip to content

#ba4abf

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

RGB
186, 74, 191
HSL
297°, 48%, 52%
CMYK
3, 61, 0, 25
Luminance
0.1910

At a glance

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

Hex
#ba4abf
Hue
297°
magenta / pink
Saturation
48%
vivid
Lightness
52%
balanced
Brightness
75%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1910
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.82:1
Closest name
Medium Orchid
ΔE2000 4.1
Where it sits
Hue297° of 360°
Saturation48%
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#ba4abf
RGBrgb(186, 74, 191)
HSLhsl(297, 48%, 52%)
CMYKcmyk(3%, 61%, 0%, 25%)
LABlab(50.8 60.3 -40.4)
LCHlch(50.8 72.5 326.1)
OKLCHoklch(0.602 0.200 326.0)
Decimal12208831
Display P3color(display-p3 0.729 0.290 0.749)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4abf on white: 4.36:1
AA ✗ fail · AA-large · AAA
Aa
#ba4abf on black: 4.82:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3870C3
deuteranopia · #617EBC
tritanopia · #BF5A7E

Color scale — 50 to 950

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

#FAF4FA
#F5EAF5
#EBD0EC
#DFACE2
#D083D3
#ba4abf
#B040B5
#933597
#752B79
#562258
#361537
Base = 500Lightest = 50 · #FAF4FADarkest = 950 · #361537
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F5EAF5;
  --brand-200: #EBD0EC;
  --brand-300: #DFACE2;
  --brand-400: #D083D3;
  --brand-500: #ba4abf;
  --brand-600: #B040B5;
  --brand-700: #933597;
  --brand-800: #752B79;
  --brand-900: #562258;
  --brand-950: #361537;
  --brand: #ba4abf;
  --brand-ink: #000000;
}

Colors that work with #ba4abf

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#E8C3EA
Hairlines and dividers
Muted text#974B9B
Captions on the surface
Accent#509B31
Second voice, not a rival
Dark variant#5C215E
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 #ba4abf

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#4FBF4A
Analogous left#804ABF
Analogous right#BF4A8A
Split-complement 1#8ABF4A
Split-complement 2#4ABF80
Triadic 1#BFBA4A
Triadic 2#4ABFBA
Tetradic#BF804A

RGB percentages

Red72.9%
Green29.0%
Blue74.9%

CMYK percentages

Cyan2.6%
Magenta61.3%
Yellow0.0%
Key (black)25.1%

Color previews

#ba4abf text on a black background

contrast 4.82:1

Card sample

#ba4abf text on a white background

contrast 4.36:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4abf

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.

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

#ba4abf, answered

What color is #ba4abf?

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

What is the RGB value of #ba4abf?

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

Is #ba4abf a light or a dark color?

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

Should I use black or white text on #ba4abf?

Black. It scores 4.82:1 against #ba4abf, versus 4.36:1 for white — AA at any size.

What is the complementary color of #ba4abf?

#4FBF4A sits directly opposite on the wheel. Softer options are the split-complements #8ABF4A and #4ABF80, which give the same contrast with far less vibration.

What colors go well with #ba4abf?

For interface work: #FAF4FA as the surface, #E8C3EA for borders, #974B9B for secondary text, #509B31 as an accent and #5C215E for hover and pressed states. For a palette, the analogous pair #804ABF and #BF4A8A stays calm, while #4FBF4A is the loudest partner.

What is #ba4abf in CMYK for printing?

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

Is #ba4abf 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 #BF4A99; nudged cooler, #9048C2.

Work with #ba4abf in the Color Lab