Skip to content

#ba2c7f

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

RGB
186, 44, 127
HSL
325°, 62%, 45%
CMYK
0, 76, 32, 27
Luminance
0.1377

At a glance

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

Hex
#ba2c7f
Hue
325°
magenta / pink
Saturation
62%
vivid
Lightness
45%
balanced
Brightness
73%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1377
WCAG relative
Temperature
Warm
36/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.59:1
Closest name
Medium Violet Red
ΔE2000 2.4
Where it sits
Hue325° of 360°
Saturation62%
Lightness45%
Temperature
Warm ← → Cool36% 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#ba2c7f
RGBrgb(186, 44, 127)
HSLhsl(325, 62%, 45%)
CMYKcmyk(0%, 76%, 32%, 27%)
LABlab(43.9 62.0 -13.0)
LCHlch(43.9 63.4 348.1)
OKLCHoklch(0.542 0.193 349.8)
Decimal12201087
Display P3color(display-p3 0.729 0.173 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2c7f on white: 5.59:1
AA ✓ pass · AA-large · AAA
Aa
#ba2c7f on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #445881
deuteranopia · #6D717C
tritanopia · #C82252

Color scale — 50 to 950

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

#FBF4F8
#F7E8F1
#F0CCE1
#EAA4CD
#DF77B4
#D44A9B
#ba2c7f
#A52771
#841F5A
#601A43
#3C112A
Base = 600Lightest = 50 · #FBF4F8Darkest = 950 · #3C112A
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F7E8F1;
  --brand-200: #F0CCE1;
  --brand-300: #EAA4CD;
  --brand-400: #DF77B4;
  --brand-500: #D44A9B;
  --brand-600: #ba2c7f;
  --brand-700: #A52771;
  --brand-800: #841F5A;
  --brand-900: #601A43;
  --brand-950: #3C112A;
  --brand: #ba2c7f;
  --brand-ink: #ffffff;
}

Colors that work with #ba2c7f

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#FAF4F8
Tinted page background
Border#EDC0DA
Hairlines and dividers
Muted text#9B4B7A
Captions on the surface
Accent#23A939
Second voice, not a rival
Dark variant#671846
Hover, pressed, headers
Light variant#FAEAF4
Selected rows, tints
Dark surface#24141D
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 #ba2c7f

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#2CBA67
Analogous left#AE2CBA
Analogous right#BA2C38
Split-complement 1#38BA2C
Split-complement 2#2CBAAE
Triadic 1#7FBA2C
Triadic 2#2C7FBA
Tetradic#BAAE2C

RGB percentages

Red72.9%
Green17.3%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta76.3%
Yellow31.7%
Key (black)27.1%

Color previews

#ba2c7f text on a black background

contrast 3.75:1

Card sample

#ba2c7f text on a white background

contrast 5.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2c7f

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.

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

#ba2c7f, answered

What color is #ba2c7f?

#ba2c7f is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 2.4). It sits at 325° on the hue wheel with 62% saturation and 45% lightness, which reads as warm.

What is the RGB value of #ba2c7f?

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

Is #ba2c7f a light or a dark color?

It is a dark color. Relative luminance is 0.1377 and perceived brightness is 45%, so white text on it reaches 5.59:1.

Should I use black or white text on #ba2c7f?

White. It scores 5.59:1 against #ba2c7f, versus 3.75:1 for black — AA at any size.

What is the complementary color of #ba2c7f?

#2CBA67 sits directly opposite on the wheel. Softer options are the split-complements #38BA2C and #2CBAAE, which give the same contrast with far less vibration.

What colors go well with #ba2c7f?

For interface work: #FAF4F8 as the surface, #EDC0DA for borders, #9B4B7A for secondary text, #23A939 as an accent and #671846 for hover and pressed states. For a palette, the analogous pair #AE2CBA and #BA2C38 stays calm, while #2CBA67 is the loudest partner.

What is #ba2c7f in CMYK for printing?

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

Is #ba2c7f warm or cool?

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

Work with #ba2c7f in the Color Lab