Skip to content

#ba2d83

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

RGB
186, 45, 131
HSL
323°, 61%, 45%
CMYK
0, 76, 30, 27
Luminance
0.1395

At a glance

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

Hex
#ba2d83
Hue
323°
magenta / pink
Saturation
61%
vivid
Lightness
45%
balanced
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1395
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.54:1
Closest name
Medium Violet Red
ΔE2000 2.3
Where it sits
Hue323° of 360°
Saturation61%
Lightness45%
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#ba2d83
RGBrgb(186, 45, 131)
HSLhsl(323, 61%, 45%)
CMYKcmyk(0%, 76%, 30%, 27%)
LABlab(44.2 62.2 -15.1)
LCHlch(44.2 64.0 346.4)
OKLCHoklch(0.544 0.194 348.2)
Decimal12201347
Display P3color(display-p3 0.729 0.176 0.514)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2d83 on white: 5.54:1
AA ✓ pass · AA-large · AAA
Aa
#ba2d83 on black: 3.79:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #435985
deuteranopia · #6C7180
tritanopia · #C72654

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba2d83 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
#F0CCE2
#E9A5CE
#DE78B6
#D34A9E
#ba2d83
#A42874
#83205D
#601B45
#3C112B
Base = 600Lightest = 50 · #FBF4F8Darkest = 950 · #3C112B
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F7E8F1;
  --brand-200: #F0CCE2;
  --brand-300: #E9A5CE;
  --brand-400: #DE78B6;
  --brand-500: #D34A9E;
  --brand-600: #ba2d83;
  --brand-700: #A42874;
  --brand-800: #83205D;
  --brand-900: #601B45;
  --brand-950: #3C112B;
  --brand: #ba2d83;
  --brand-ink: #ffffff;
}

Colors that work with #ba2d83

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#EDC0DB
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#23A936
Second voice, not a rival
Dark variant#671948
Hover, pressed, headers
Light variant#FAEAF4
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 #ba2d83

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#2DBA64
Analogous left#AA2DBA
Analogous right#BA2D3D
Split-complement 1#3DBA2D
Split-complement 2#2DBAAA
Triadic 1#83BA2D
Triadic 2#2D83BA
Tetradic#BAAA2D

RGB percentages

Red72.9%
Green17.6%
Blue51.4%

CMYK percentages

Cyan0.0%
Magenta75.8%
Yellow29.6%
Key (black)27.1%

Color previews

#ba2d83 text on a black background

contrast 3.79:1

Card sample

#ba2d83 text on a white background

contrast 5.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2d83

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.

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

#ba2d83, answered

What color is #ba2d83?

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

What is the RGB value of #ba2d83?

rgb(186, 45, 131) — 186 red, 45 green and 131 blue out of 255, or 72.9% / 17.6% / 51.4% by channel.

Is #ba2d83 a light or a dark color?

It is a dark color. Relative luminance is 0.1395 and perceived brightness is 46%, so white text on it reaches 5.54:1.

Should I use black or white text on #ba2d83?

White. It scores 5.54:1 against #ba2d83, versus 3.79:1 for black — AA at any size.

What is the complementary color of #ba2d83?

#2DBA64 sits directly opposite on the wheel. Softer options are the split-complements #3DBA2D and #2DBAAA, which give the same contrast with far less vibration.

What colors go well with #ba2d83?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7C for secondary text, #23A936 as an accent and #671948 for hover and pressed states. For a palette, the analogous pair #AA2DBA and #BA2D3D stays calm, while #2DBA64 is the loudest partner.

What is #ba2d83 in CMYK for printing?

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

Is #ba2d83 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 #BA2D4F; nudged cooler, #BC2BB9.

Work with #ba2d83 in the Color Lab