Skip to content

#ba2bab

a dark, vivid magenta / pink · neutral · closest name: Medium Violet Red

RGB
186, 43, 171
HSL
306°, 62%, 45%
CMYK
0, 77, 8, 27
Luminance
0.1511

At a glance

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

Hex
#ba2bab
Hue
306°
magenta / pink
Saturation
62%
vivid
Lightness
45%
dark
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1511
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.22:1
Closest name
Medium Violet Red
ΔE2000 8.3
Where it sits
Hue306° of 360°
Saturation62%
Lightness45%
Temperature
Warm ← → Cool47% 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#ba2bab
RGBrgb(186, 43, 171)
HSLhsl(306, 62%, 45%)
CMYKcmyk(0%, 77%, 8%, 27%)
LABlab(45.8 68.2 -36.6)
LCHlch(45.8 77.4 331.8)
OKLCHoklch(0.562 0.221 332.9)
Decimal12200875
Display P3color(display-p3 0.729 0.169 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2bab on white: 5.22:1
AA ✓ pass · AA-large · AAA
Aa
#ba2bab on black: 4.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #235FAE
deuteranopia · #5D74A8
tritanopia · #C23B6A

Color scale — 50 to 950

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

#FBF4FA
#F7E8F6
#F0CCEC
#EAA4E3
#DF76D4
#D549C6
#ba2bab
#A62698
#851F7A
#601A59
#3C1038
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #3C1038
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F7E8F6;
  --brand-200: #F0CCEC;
  --brand-300: #EAA4E3;
  --brand-400: #DF76D4;
  --brand-500: #D549C6;
  --brand-600: #ba2bab;
  --brand-700: #A62698;
  --brand-800: #851F7A;
  --brand-900: #601A59;
  --brand-950: #3C1038;
  --brand: #ba2bab;
  --brand-ink: #ffffff;
}

Colors that work with #ba2bab

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#FAF4FA
Tinted page background
Border#EDC0E8
Hairlines and dividers
Muted text#9B4B92
Captions on the surface
Accent#36AA22
Second voice, not a rival
Dark variant#68185F
Hover, pressed, headers
Light variant#FAEAF9
Selected rows, tints
Dark surface#241423
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 #ba2bab

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#2BBA3A
Analogous left#812BBA
Analogous right#BA2B63
Split-complement 1#63BA2B
Split-complement 2#2BBA81
Triadic 1#ABBA2B
Triadic 2#2BABBA
Tetradic#BA812B

RGB percentages

Red72.9%
Green16.9%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta76.9%
Yellow8.1%
Key (black)27.1%

Color previews

#ba2bab text on a black background

contrast 4.02:1

Card sample

#ba2bab text on a white background

contrast 5.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2bab

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.

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

#ba2bab, answered

What color is #ba2bab?

#ba2bab is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8.3). It sits at 306° on the hue wheel with 62% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #ba2bab?

rgb(186, 43, 171) — 186 red, 43 green and 171 blue out of 255, or 72.9% / 16.9% / 67.1% by channel.

Is #ba2bab a light or a dark color?

It is a dark color. Relative luminance is 0.1511 and perceived brightness is 48%, so white text on it reaches 5.22:1.

Should I use black or white text on #ba2bab?

White. It scores 5.22:1 against #ba2bab, versus 4.02:1 for black — AA at any size.

What is the complementary color of #ba2bab?

#2BBA3A sits directly opposite on the wheel. Softer options are the split-complements #63BA2B and #2BBA81, which give the same contrast with far less vibration.

What colors go well with #ba2bab?

For interface work: #FAF4FA as the surface, #EDC0E8 for borders, #9B4B92 for secondary text, #36AA22 as an accent and #68185F for hover and pressed states. For a palette, the analogous pair #812BBA and #BA2B63 stays calm, while #2BBA3A is the loudest partner.

What is #ba2bab in CMYK for printing?

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

Is #ba2bab warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA2B77; nudged cooler, #9629BC.

Work with #ba2bab in the Color Lab