Skip to content

#ba3da8

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

RGB
186, 61, 168
HSL
309°, 51%, 48%
CMYK
0, 67, 10, 27
Luminance
0.1660

At a glance

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

Hex
#ba3da8
Hue
309°
magenta / pink
Saturation
51%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1660
WCAG relative
Temperature
Neutral
45/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.86:1
Closest name
Medium Violet Red
ΔE2000 8
Where it sits
Hue309° of 360°
Saturation51%
Lightness48%
Temperature
Warm ← → Cool45% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba3da8
RGBrgb(186, 61, 168)
HSLhsl(309, 51%, 48%)
CMYKcmyk(0%, 67%, 10%, 27%)
LABlab(47.8 61.7 -31.8)
LCHlch(47.8 69.4 332.8)
OKLCHoklch(0.576 0.199 334.1)
Decimal12205480
Display P3color(display-p3 0.729 0.239 0.659)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3da8 on white: 4.86:1
AA ✓ pass · AA-large · AAA
Aa
#ba3da8 on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B66AB
deuteranopia · #6578A5
tritanopia · #C3476D

Color scale — 50 to 950

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

#FAF4FA
#F6EAF4
#EDCFE8
#E3ABDB
#D580C9
#C856B7
#ba3da8
#9A328B
#7B286F
#5A2152
#381433
Base = 600Lightest = 50 · #FAF4FADarkest = 950 · #381433
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F6EAF4;
  --brand-200: #EDCFE8;
  --brand-300: #E3ABDB;
  --brand-400: #D580C9;
  --brand-500: #C856B7;
  --brand-600: #ba3da8;
  --brand-700: #9A328B;
  --brand-800: #7B286F;
  --brand-900: #5A2152;
  --brand-950: #381433;
  --brand: #ba3da8;
  --brand-ink: #ffffff;
}

Colors that work with #ba3da8

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#FAF4FA
Tinted page background
Border#EBC2E5
Hairlines and dividers
Muted text#9B4B8F
Captions on the surface
Accent#3A9E2E
Second voice, not a rival
Dark variant#601F57
Hover, pressed, headers
Light variant#F9ECF7
Selected rows, tints
Dark surface#241422
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 #ba3da8

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#3DBA4F
Analogous left#8D3DBA
Analogous right#BA3D6A
Split-complement 1#6ABA3D
Split-complement 2#3DBA8D
Triadic 1#A8BA3D
Triadic 2#3DA8BA
Tetradic#BA8D3D

RGB percentages

Red72.9%
Green23.9%
Blue65.9%

CMYK percentages

Cyan0.0%
Magenta67.2%
Yellow9.7%
Key (black)27.1%

Color previews

#ba3da8 text on a black background

contrast 4.32:1

Card sample

#ba3da8 text on a white background

contrast 4.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3da8

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.

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

#ba3da8, answered

What color is #ba3da8?

#ba3da8 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 8). It sits at 309° on the hue wheel with 51% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #ba3da8?

rgb(186, 61, 168) — 186 red, 61 green and 168 blue out of 255, or 72.9% / 23.9% / 65.9% by channel.

Is #ba3da8 a light or a dark color?

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

Should I use black or white text on #ba3da8?

White. It scores 4.86:1 against #ba3da8, versus 4.32:1 for black — AA at any size.

What is the complementary color of #ba3da8?

#3DBA4F sits directly opposite on the wheel. Softer options are the split-complements #6ABA3D and #3DBA8D, which give the same contrast with far less vibration.

What colors go well with #ba3da8?

For interface work: #FAF4FA as the surface, #EBC2E5 for borders, #9B4B8F for secondary text, #3A9E2E as an accent and #601F57 for hover and pressed states. For a palette, the analogous pair #8D3DBA and #BA3D6A stays calm, while #3DBA4F is the loudest partner.

What is #ba3da8 in CMYK for printing?

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

Is #ba3da8 warm or cool?

Neutral — it scores 45 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA3D7A; nudged cooler, #9F3BBC.

Work with #ba3da8 in the Color Lab