Skip to content

#ba397c

a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
186, 57, 124
HSL
329°, 53%, 48%
CMYK
0, 69, 33, 27
Luminance
0.1482

At a glance

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

Hex
#ba397c
Hue
329°
magenta / pink
Saturation
53%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1482
WCAG relative
Temperature
Warm
34/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.30:1
Closest name
Medium Violet Red
ΔE2000 4.1
Where it sits
Hue329° of 360°
Saturation53%
Lightness48%
Temperature
Warm ← → Cool34% cool

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

Every format

HEX#ba397c
RGBrgb(186, 57, 124)
HSLhsl(329, 53%, 48%)
CMYKcmyk(0%, 69%, 33%, 27%)
LABlab(45.4 57.2 -8.9)
LCHlch(45.4 57.9 351.1)
OKLCHoklch(0.552 0.176 352.5)
Decimal12204412
Display P3color(display-p3 0.729 0.224 0.486)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba397c on white: 5.30:1
AA ✓ pass · AA-large · AAA
Aa
#ba397c on black: 3.96:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4E5D7E
deuteranopia · #727479
tritanopia · #C83055

Color scale — 50 to 950

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

#FBF4F7
#F6E9F0
#EDCEDE
#E5A9C8
#D87EAD
#CA5391
#ba397c
#9C3068
#7D2653
#5B1F3E
#391427
Base = 600Lightest = 50 · #FBF4F7Darkest = 950 · #391427
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F6E9F0;
  --brand-200: #EDCEDE;
  --brand-300: #E5A9C8;
  --brand-400: #D87EAD;
  --brand-500: #CA5391;
  --brand-600: #ba397c;
  --brand-700: #9C3068;
  --brand-800: #7D2653;
  --brand-900: #5B1F3E;
  --brand-950: #391427;
  --brand: #ba397c;
  --brand-ink: #ffffff;
}

Colors that work with #ba397c

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

Text on it#ffffff
White wins here
Surface#FAF4F7
Tinted page background
Border#ECC1D7
Hairlines and dividers
Muted text#9B4B74
Captions on the surface
Accent#2CA046
Second voice, not a rival
Dark variant#621E41
Hover, pressed, headers
Light variant#F9EBF3
Selected rows, tints
Dark surface#24141C
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 #ba397c

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#39BA77
Analogous left#B739BA
Analogous right#BA393C
Split-complement 1#3CBA39
Split-complement 2#39BAB7
Triadic 1#7CBA39
Triadic 2#397CBA
Tetradic#BAB739

RGB percentages

Red72.9%
Green22.4%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta69.4%
Yellow33.3%
Key (black)27.1%

Color previews

#ba397c text on a black background

contrast 3.96:1

Card sample

#ba397c text on a white background

contrast 5.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba397c

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.

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

#ba397c, answered

What color is #ba397c?

#ba397c is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4.1). It sits at 329° on the hue wheel with 53% saturation and 48% lightness, which reads as warm.

What is the RGB value of #ba397c?

rgb(186, 57, 124) — 186 red, 57 green and 124 blue out of 255, or 72.9% / 22.4% / 48.6% by channel.

Is #ba397c a light or a dark color?

It is a dark color. Relative luminance is 0.1482 and perceived brightness is 46%, so white text on it reaches 5.30:1.

Should I use black or white text on #ba397c?

White. It scores 5.30:1 against #ba397c, versus 3.96:1 for black — AA at any size.

What is the complementary color of #ba397c?

#39BA77 sits directly opposite on the wheel. Softer options are the split-complements #3CBA39 and #39BAB7, which give the same contrast with far less vibration.

What colors go well with #ba397c?

For interface work: #FAF4F7 as the surface, #ECC1D7 for borders, #9B4B74 for secondary text, #2CA046 as an accent and #621E41 for hover and pressed states. For a palette, the analogous pair #B739BA and #BA393C stays calm, while #39BA77 is the loudest partner.

What is #ba397c in CMYK for printing?

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

Is #ba397c warm or cool?

Warm — it scores 34 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA394D; nudged cooler, #BC36AD.

Work with #ba397c in the Color Lab