Skip to content

#ba2f72

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

RGB
186, 47, 114
HSL
331°, 60%, 46%
CMYK
0, 75, 39, 27
Luminance
0.1369

At a glance

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

Hex
#ba2f72
Hue
331°
magenta / pink
Saturation
60%
vivid
Lightness
46%
balanced
Brightness
73%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1369
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.62:1
Closest name
Medium Violet Red
ΔE2000 4.7
Where it sits
Hue331° of 360°
Saturation60%
Lightness46%
Temperature
Warm ← → Cool33% 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#ba2f72
RGBrgb(186, 47, 114)
HSLhsl(331, 60%, 46%)
CMYKcmyk(0%, 75%, 39%, 27%)
LABlab(43.8 59.7 -5.2)
LCHlch(43.8 59.9 355.0)
OKLCHoklch(0.540 0.184 356.0)
Decimal12201842
Display P3color(display-p3 0.729 0.184 0.447)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2f72 on white: 5.62:1
AA ✓ pass · AA-large · AAA
Aa
#ba2f72 on black: 3.74:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4B5774
deuteranopia · #71716F
tritanopia · #C91E4C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba2f72 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
#F7E9EF
#EFCCDD
#E8A5C6
#DD79A9
#D24C8C
#ba2f72
#A32964
#822150
#5F1C3C
#3B1125
Base = 600Lightest = 50 · #FBF4F7Darkest = 950 · #3B1125
:root {
  --brand-50: #FBF4F7;
  --brand-100: #F7E9EF;
  --brand-200: #EFCCDD;
  --brand-300: #E8A5C6;
  --brand-400: #DD79A9;
  --brand-500: #D24C8C;
  --brand-600: #ba2f72;
  --brand-700: #A32964;
  --brand-800: #822150;
  --brand-900: #5F1C3C;
  --brand-950: #3B1125;
  --brand: #ba2f72;
  --brand-ink: #ffffff;
}

Colors that work with #ba2f72

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#EDC0D5
Hairlines and dividers
Muted text#9B4B71
Captions on the surface
Accent#25A748
Second voice, not a rival
Dark variant#661A3E
Hover, pressed, headers
Light variant#FAEBF2
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 #ba2f72

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#2FBA77
Analogous left#BA2FB8
Analogous right#BA322F
Split-complement 1#2FBA32
Split-complement 2#2FB8BA
Triadic 1#72BA2F
Triadic 2#2F72BA
Tetradic#B8BA2F

RGB percentages

Red72.9%
Green18.4%
Blue44.7%

CMYK percentages

Cyan0.0%
Magenta74.7%
Yellow38.7%
Key (black)27.1%

Color previews

#ba2f72 text on a black background

contrast 3.74:1

Card sample

#ba2f72 text on a white background

contrast 5.62:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2f72

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.

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

#ba2f72, answered

What color is #ba2f72?

#ba2f72 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4.7). It sits at 331° on the hue wheel with 60% saturation and 46% lightness, which reads as warm.

What is the RGB value of #ba2f72?

rgb(186, 47, 114) — 186 red, 47 green and 114 blue out of 255, or 72.9% / 18.4% / 44.7% by channel.

Is #ba2f72 a light or a dark color?

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

Should I use black or white text on #ba2f72?

White. It scores 5.62:1 against #ba2f72, versus 3.74:1 for black — AA at any size.

What is the complementary color of #ba2f72?

#2FBA77 sits directly opposite on the wheel. Softer options are the split-complements #2FBA32 and #2FB8BA, which give the same contrast with far less vibration.

What colors go well with #ba2f72?

For interface work: #FAF4F7 as the surface, #EDC0D5 for borders, #9B4B71 for secondary text, #25A748 as an accent and #661A3E for hover and pressed states. For a palette, the analogous pair #BA2FB8 and #BA322F stays calm, while #2FBA77 is the loudest partner.

What is #ba2f72 in CMYK for printing?

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

Is #ba2f72 warm or cool?

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

Work with #ba2f72 in the Color Lab