Skip to content

#ba1c72

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

RGB
186, 28, 114
HSL
327°, 74%, 42%
CMYK
0, 85, 39, 27
Luminance
0.1248

At a glance

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

Hex
#ba1c72
Hue
327°
magenta / pink
Saturation
74%
vivid
Lightness
42%
dark
Brightness
73%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1248
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.01:1
Closest name
Medium Violet Red
ΔE2000 4
Where it sits
Hue327° of 360°
Saturation74%
Lightness42%
Temperature
Warm ← → Cool35% 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#ba1c72
RGBrgb(186, 28, 114)
HSLhsl(327, 74%, 42%)
CMYKcmyk(0%, 85%, 39%, 27%)
LABlab(42.0 64.8 -7.9)
LCHlch(42.0 65.3 353.1)
OKLCHoklch(0.526 0.201 354.3)
Decimal12196978
Display P3color(display-p3 0.729 0.110 0.447)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba1c72 on white: 6.01:1
AA ✓ pass · AA-large · AAA
Aa
#ba1c72 on black: 3.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #415174
deuteranopia · #6D6D6F
tritanopia · #C90046

Color scale — 50 to 950

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

#FCF3F8
#F9E7F0
#F3C8E0
#F09DCB
#E96DB0
#E23C96
#D52083
#ba1c72
#8E1557
#671441
#400C29
Base = 700Lightest = 50 · #FCF3F8Darkest = 950 · #400C29
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F9E7F0;
  --brand-200: #F3C8E0;
  --brand-300: #F09DCB;
  --brand-400: #E96DB0;
  --brand-500: #E23C96;
  --brand-600: #D52083;
  --brand-700: #ba1c72;
  --brand-800: #8E1557;
  --brand-900: #671441;
  --brand-950: #400C29;
  --brand: #ba1c72;
  --brand-ink: #ffffff;
}

Colors that work with #ba1c72

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#EDC0D8
Hairlines and dividers
Muted text#9B4B76
Captions on the surface
Accent#17B537
Second voice, not a rival
Dark variant#6F1144
Hover, pressed, headers
Light variant#FCE9F3
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 #ba1c72

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#1CBA64
Analogous left#B31CBA
Analogous right#BA1C23
Split-complement 1#23BA1C
Split-complement 2#1CBAB3
Triadic 1#72BA1C
Triadic 2#1C72BA
Tetradic#BAB31C

RGB percentages

Red72.9%
Green11.0%
Blue44.7%

CMYK percentages

Cyan0.0%
Magenta84.9%
Yellow38.7%
Key (black)27.1%

Color previews

#ba1c72 text on a black background

contrast 3.50:1

Card sample

#ba1c72 text on a white background

contrast 6.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba1c72

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.

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

#ba1c72, answered

What color is #ba1c72?

#ba1c72 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4). It sits at 327° on the hue wheel with 74% saturation and 42% lightness, which reads as warm.

What is the RGB value of #ba1c72?

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

Is #ba1c72 a light or a dark color?

It is a dark color. Relative luminance is 0.1248 and perceived brightness is 43%, so white text on it reaches 6.01:1.

Should I use black or white text on #ba1c72?

White. It scores 6.01:1 against #ba1c72, versus 3.50:1 for black — AA at any size.

What is the complementary color of #ba1c72?

#1CBA64 sits directly opposite on the wheel. Softer options are the split-complements #23BA1C and #1CBAB3, which give the same contrast with far less vibration.

What colors go well with #ba1c72?

For interface work: #FAF4F8 as the surface, #EDC0D8 for borders, #9B4B76 for secondary text, #17B537 as an accent and #6F1144 for hover and pressed states. For a palette, the analogous pair #B31CBA and #BA1C23 stays calm, while #1CBA64 is the loudest partner.

What is #ba1c72 in CMYK for printing?

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

Is #ba1c72 warm or cool?

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

Work with #ba1c72 in the Color Lab