Skip to content

#ba39b2

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

RGB
186, 57, 178
HSL
304°, 53%, 48%
CMYK
0, 69, 4, 27
Luminance
0.1658

At a glance

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

Hex
#ba39b2
Hue
304°
magenta / pink
Saturation
53%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1658
WCAG relative
Temperature
Neutral
48/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.87:1
Closest name
Medium Orchid
ΔE2000 7.7
Where it sits
Hue304° of 360°
Saturation53%
Lightness48%
Temperature
Warm ← → Cool48% 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#ba39b2
RGBrgb(186, 57, 178)
HSLhsl(304, 53%, 48%)
CMYKcmyk(0%, 69%, 4%, 27%)
LABlab(47.7 64.8 -37.7)
LCHlch(47.7 75.0 329.8)
OKLCHoklch(0.577 0.211 330.6)
Decimal12204466
Display P3color(display-p3 0.729 0.224 0.698)

Copy-ready code

/* CSS */
color: #ba39b2;
background-color: #ba39b2;
/* Tailwind (arbitrary) */
class="text-[#ba39b2] bg-[#ba39b2]"
/* SCSS */
$brand: #ba39b2;
/* SwiftUI */
Color(red: 0.729, green: 0.224, blue: 0.698)
/* Android */
Color.parseColor("#ba39b2")
/* Flutter */
Color(0xFFBA39B2)
/* Python / OpenCV (BGR) */
(178, 57, 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 #ba39b2 · 4.87:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.87: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: #ba39b2 as text scores 4.87:1 on white and 4.32:1 on black.

Accessibility — WCAG contrast

Aa
#ba39b2 on white: 4.87:1
AA ✓ pass · AA-large · AAA
Aa
#ba39b2 on black: 4.32:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2D66B5
deuteranopia · #5F78AF
tritanopia · #C14871

Color scale — 50 to 950

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

#FBF4FA
#F6E9F5
#EDCEEB
#E5A9E1
#D87ED2
#CA53C3
#ba39b2
#9C3095
#7D2678
#5B1F57
#391437
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #391437
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F6E9F5;
  --brand-200: #EDCEEB;
  --brand-300: #E5A9E1;
  --brand-400: #D87ED2;
  --brand-500: #CA53C3;
  --brand-600: #ba39b2;
  --brand-700: #9C3095;
  --brand-800: #7D2678;
  --brand-900: #5B1F57;
  --brand-950: #391437;
  --brand: #ba39b2;
  --brand-ink: #ffffff;
}

Colors that work with #ba39b2

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#ECC1E9
Hairlines and dividers
Muted text#9B4B96
Captions on the surface
Accent#41A02C
Second voice, not a rival
Dark variant#621E5D
Hover, pressed, headers
Light variant#F9EBF8
Selected rows, tints
Dark surface#241423
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 #ba39b2

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#39BA41
Analogous left#8139BA
Analogous right#BA3971
Split-complement 1#71BA39
Split-complement 2#39BA81
Triadic 1#B2BA39
Triadic 2#39B2BA
Tetradic#BA8139

RGB percentages

Red72.9%
Green22.4%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta69.4%
Yellow4.3%
Key (black)27.1%

Color previews

#ba39b2 text on a black background

contrast 4.32:1

Card sample

#ba39b2 text on a white background

contrast 4.87:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba39b2

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.

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

#ba39b2, answered

What color is #ba39b2?

#ba39b2 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 7.7). It sits at 304° on the hue wheel with 53% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #ba39b2?

rgb(186, 57, 178) — 186 red, 57 green and 178 blue out of 255, or 72.9% / 22.4% / 69.8% by channel.

Is #ba39b2 a light or a dark color?

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

Should I use black or white text on #ba39b2?

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

What is the complementary color of #ba39b2?

#39BA41 sits directly opposite on the wheel. Softer options are the split-complements #71BA39 and #39BA81, which give the same contrast with far less vibration.

What colors go well with #ba39b2?

For interface work: #FAF4FA as the surface, #ECC1E9 for borders, #9B4B96 for secondary text, #41A02C as an accent and #621E5D for hover and pressed states. For a palette, the analogous pair #8139BA and #BA3971 stays calm, while #39BA41 is the loudest partner.

What is #ba39b2 in CMYK for printing?

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

Is #ba39b2 warm or cool?

Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA3983; nudged cooler, #9336BC.

Work with #ba39b2 in the Color Lab