Skip to content

#ba488f

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

RGB
186, 72, 143
HSL
323°, 45%, 51%
CMYK
0, 61, 23, 27
Luminance
0.1706

At a glance

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

Hex
#ba488f
Hue
323°
magenta / pink
Saturation
45%
vivid
Lightness
51%
balanced
Brightness
73%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1706
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.76:1
Closest name
Medium Violet Red
ΔE2000 5.9
Where it sits
Hue323° of 360°
Saturation45%
Lightness51%
Temperature
Warm ← → Cool37% 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#ba488f
RGBrgb(186, 72, 143)
HSLhsl(323, 45%, 51%)
CMYKcmyk(0%, 61%, 23%, 27%)
LABlab(48.3 53.5 -16.0)
LCHlch(48.3 55.8 343.4)
OKLCHoklch(0.576 0.166 345.2)
Decimal12208271
Display P3color(display-p3 0.729 0.282 0.561)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba488f on white: 4.76:1
AA ✓ pass · AA-large · AAA
Aa
#ba488f on black: 4.41:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #536791
deuteranopia · #747A8C
tritanopia · #C64765

Color scale — 50 to 950

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

#FAF5F8
#F5EAF1
#EBD1E1
#E0AECD
#D185B4
#C25C9B
#ba488f
#943871
#762D5B
#572443
#36162A
Base = 600Lightest = 50 · #FAF5F8Darkest = 950 · #36162A
:root {
  --brand-50: #FAF5F8;
  --brand-100: #F5EAF1;
  --brand-200: #EBD1E1;
  --brand-300: #E0AECD;
  --brand-400: #D185B4;
  --brand-500: #C25C9B;
  --brand-600: #ba488f;
  --brand-700: #943871;
  --brand-800: #762D5B;
  --brand-900: #572443;
  --brand-950: #36162A;
  --brand: #ba488f;
  --brand-ink: #ffffff;
}

Colors that work with #ba488f

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#E9C4DB
Hairlines and dividers
Muted text#9B4B7D
Captions on the surface
Accent#349841
Second voice, not a rival
Dark variant#5D2347
Hover, pressed, headers
Light variant#F8ECF4
Selected rows, tints
Dark surface#24141E
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 #ba488f

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#48BA73
Analogous left#AC48BA
Analogous right#BA4856
Split-complement 1#56BA48
Split-complement 2#48BAAC
Triadic 1#8FBA48
Triadic 2#488FBA
Tetradic#BAAC48

RGB percentages

Red72.9%
Green28.2%
Blue56.1%

CMYK percentages

Cyan0.0%
Magenta61.3%
Yellow23.1%
Key (black)27.1%

Color previews

#ba488f text on a black background

contrast 4.41:1

Card sample

#ba488f text on a white background

contrast 4.76:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba488f

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.

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

#ba488f, answered

What color is #ba488f?

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

What is the RGB value of #ba488f?

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

Is #ba488f a light or a dark color?

It is a dark color. Relative luminance is 0.1706 and perceived brightness is 49%, so white text on it reaches 4.76:1.

Should I use black or white text on #ba488f?

White. It scores 4.76:1 against #ba488f, versus 4.41:1 for black — AA at any size.

What is the complementary color of #ba488f?

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

What colors go well with #ba488f?

For interface work: #FAF4F8 as the surface, #E9C4DB for borders, #9B4B7D for secondary text, #349841 as an accent and #5D2347 for hover and pressed states. For a palette, the analogous pair #AC48BA and #BA4856 stays calm, while #48BA73 is the loudest partner.

What is #ba488f in CMYK for printing?

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

Is #ba488f warm or cool?

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

Work with #ba488f in the Color Lab