Skip to content

#ba4881

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

RGB
186, 72, 129
HSL
330°, 45%, 51%
CMYK
0, 61, 31, 27
Luminance
0.1666

At a glance

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

Hex
#ba4881
Hue
330°
magenta / pink
Saturation
45%
vivid
Lightness
51%
balanced
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1666
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.85:1
Closest name
Medium Violet Red
ΔE2000 6.2
Where it sits
Hue330° of 360°
Saturation45%
Lightness51%
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#ba4881
RGBrgb(186, 72, 129)
HSLhsl(330, 45%, 51%)
CMYKcmyk(0%, 61%, 31%, 27%)
LABlab(47.8 51.6 -8.3)
LCHlch(47.8 52.3 350.8)
OKLCHoklch(0.571 0.159 352.2)
Decimal12208257
Display P3color(display-p3 0.729 0.282 0.506)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4881 on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#ba4881 on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #586583
deuteranopia · #77797E
tritanopia · #C7425F

Color scale — 50 to 950

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

#FAF5F7
#F5EAF0
#EBD1DE
#E0AEC7
#D185AB
#C25C8F
#ba4881
#943866
#762D52
#57243D
#361626
Base = 600Lightest = 50 · #FAF5F7Darkest = 950 · #361626
:root {
  --brand-50: #FAF5F7;
  --brand-100: #F5EAF0;
  --brand-200: #EBD1DE;
  --brand-300: #E0AEC7;
  --brand-400: #D185AB;
  --brand-500: #C25C8F;
  --brand-600: #ba4881;
  --brand-700: #943866;
  --brand-800: #762D52;
  --brand-900: #57243D;
  --brand-950: #361626;
  --brand: #ba4881;
  --brand-ink: #ffffff;
}

Colors that work with #ba4881

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#E9C4D6
Hairlines and dividers
Muted text#9B4B73
Captions on the surface
Accent#34984D
Second voice, not a rival
Dark variant#5D2340
Hover, pressed, headers
Light variant#F8ECF2
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 #ba4881

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#48BA81
Analogous left#BA48BA
Analogous right#BA4848
Split-complement 1#48BA48
Split-complement 2#48BABA
Triadic 1#81BA48
Triadic 2#4881BA
Tetradic#BABA48

RGB percentages

Red72.9%
Green28.2%
Blue50.6%

CMYK percentages

Cyan0.0%
Magenta61.3%
Yellow30.6%
Key (black)27.1%

Color previews

#ba4881 text on a black background

contrast 4.33:1

Card sample

#ba4881 text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4881

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.

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

#ba4881, answered

What color is #ba4881?

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

What is the RGB value of #ba4881?

rgb(186, 72, 129) — 186 red, 72 green and 129 blue out of 255, or 72.9% / 28.2% / 50.6% by channel.

Is #ba4881 a light or a dark color?

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

Should I use black or white text on #ba4881?

White. It scores 4.85:1 against #ba4881, versus 4.33:1 for black — AA at any size.

What is the complementary color of #ba4881?

#48BA81 sits directly opposite on the wheel. Softer options are the split-complements #48BA48 and #48BABA, which give the same contrast with far less vibration.

What colors go well with #ba4881?

For interface work: #FAF4F7 as the surface, #E9C4D6 for borders, #9B4B73 for secondary text, #34984D as an accent and #5D2340 for hover and pressed states. For a palette, the analogous pair #BA48BA and #BA4848 stays calm, while #48BA81 is the loudest partner.

What is #ba4881 in CMYK for printing?

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

Is #ba4881 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 #BA4857; nudged cooler, #BC46AD.

Work with #ba4881 in the Color Lab