Skip to content

#ba396f

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

RGB
186, 57, 111
HSL
335°, 53%, 48%
CMYK
0, 69, 40, 27
Luminance
0.1451

At a glance

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

Hex
#ba396f
Hue
335°
magenta / pink
Saturation
53%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1451
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.38:1
Closest name
Medium Violet Red
ΔE2000 6.5
Where it sits
Hue335° of 360°
Saturation53%
Lightness48%
Temperature
Warm ← → Cool31% 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#ba396f
RGBrgb(186, 57, 111)
HSLhsl(335, 53%, 48%)
CMYKcmyk(0%, 69%, 40%, 27%)
LABlab(45.0 55.8 -1.6)
LCHlch(45.0 55.8 358.3)
OKLCHoklch(0.548 0.171 358.8)
Decimal12204399
Display P3color(display-p3 0.729 0.224 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba396f on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#ba396f on black: 3.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #525B70
deuteranopia · #75736C
tritanopia · #C92A4F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba396f 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
#F6E9EF
#EDCEDB
#E5A9C2
#D87EA4
#CA5385
#ba396f
#9C305D
#7D264B
#5B1F38
#391423
Base = 600Lightest = 50 · #FBF4F7Darkest = 950 · #391423
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F6E9EF;
  --brand-200: #EDCEDB;
  --brand-300: #E5A9C2;
  --brand-400: #D87EA4;
  --brand-500: #CA5385;
  --brand-600: #ba396f;
  --brand-700: #9C305D;
  --brand-800: #7D264B;
  --brand-900: #5B1F38;
  --brand-950: #391423;
  --brand: #ba396f;
  --brand-ink: #ffffff;
}

Colors that work with #ba396f

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#ECC1D3
Hairlines and dividers
Muted text#9B4B6C
Captions on the surface
Accent#2CA052
Second voice, not a rival
Dark variant#621E3A
Hover, pressed, headers
Light variant#F9EBF1
Selected rows, tints
Dark surface#24141B
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 #ba396f

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#39BA84
Analogous left#BA39AF
Analogous right#BA4339
Split-complement 1#39BA43
Split-complement 2#39AFBA
Triadic 1#6FBA39
Triadic 2#396FBA
Tetradic#AFBA39

RGB percentages

Red72.9%
Green22.4%
Blue43.5%

CMYK percentages

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

Color previews

#ba396f text on a black background

contrast 3.90:1

Card sample

#ba396f text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba396f

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.

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

#ba396f, answered

What color is #ba396f?

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

What is the RGB value of #ba396f?

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

Is #ba396f a light or a dark color?

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

Should I use black or white text on #ba396f?

White. It scores 5.38:1 against #ba396f, versus 3.90:1 for black — AA at any size.

What is the complementary color of #ba396f?

#39BA84 sits directly opposite on the wheel. Softer options are the split-complements #39BA43 and #39AFBA, which give the same contrast with far less vibration.

What colors go well with #ba396f?

For interface work: #FAF4F7 as the surface, #ECC1D3 for borders, #9B4B6C for secondary text, #2CA052 as an accent and #621E3A for hover and pressed states. For a palette, the analogous pair #BA39AF and #BA4339 stays calm, while #39BA84 is the loudest partner.

What is #ba396f in CMYK for printing?

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

Is #ba396f warm or cool?

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

Work with #ba396f in the Color Lab