Skip to content

#ba51af

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

RGB
186, 81, 175
HSL
306°, 43%, 52%
CMYK
0, 57, 6, 27
Luminance
0.1942

At a glance

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

Hex
#ba51af
Hue
306°
magenta / pink
Saturation
43%
soft
Lightness
52%
balanced
Brightness
73%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1942
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.88:1
Closest name
Medium Orchid
ΔE2000 6.6
Where it sits
Hue306° of 360°
Saturation43%
Lightness52%
Temperature
Warm ← → Cool47% 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#ba51af
RGBrgb(186, 81, 175)
HSLhsl(306, 43%, 52%)
CMYKcmyk(0%, 57%, 6%, 27%)
LABlab(51.2 54.4 -30.5)
LCHlch(51.2 62.4 330.7)
OKLCHoklch(0.602 0.176 331.7)
Decimal12210607
Display P3color(display-p3 0.729 0.318 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba51af on white: 4.30:1
AA ✗ fail · AA-large · AAA
Aa
#ba51af on black: 4.88:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D70B2
deuteranopia · #6D7FAC
tritanopia · #C15A78

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba51af is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF5F9
#F5EBF4
#EAD1E8
#DFAFDA
#CF86C8
#ba51af
#AF46A4
#923A89
#752E6D
#562550
#351732
Base = 500Lightest = 50 · #FAF5F9Darkest = 950 · #351732
:root {
  --brand-50: #FAF5F9;
  --brand-100: #F5EBF4;
  --brand-200: #EAD1E8;
  --brand-300: #DFAFDA;
  --brand-400: #CF86C8;
  --brand-500: #ba51af;
  --brand-600: #AF46A4;
  --brand-700: #923A89;
  --brand-800: #752E6D;
  --brand-900: #562550;
  --brand-950: #351732;
  --brand: #ba51af;
  --brand-ink: #000000;
}

Colors that work with #ba51af

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#E8C5E4
Hairlines and dividers
Muted text#9B4B92
Captions on the surface
Accent#449636
Second voice, not a rival
Dark variant#5B2456
Hover, pressed, headers
Light variant#F8EDF7
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 #ba51af

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#51BA5C
Analogous left#9151BA
Analogous right#BA517B
Split-complement 1#7BBA51
Split-complement 2#51BA91
Triadic 1#AFBA51
Triadic 2#51AFBA
Tetradic#BA9151

RGB percentages

Red72.9%
Green31.8%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta56.5%
Yellow5.9%
Key (black)27.1%

Color previews

#ba51af text on a black background

contrast 4.88:1

Card sample

#ba51af text on a white background

contrast 4.30:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba51af

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.

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

#ba51af, answered

What color is #ba51af?

#ba51af is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 6.6). It sits at 306° on the hue wheel with 43% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #ba51af?

rgb(186, 81, 175) — 186 red, 81 green and 175 blue out of 255, or 72.9% / 31.8% / 68.6% by channel.

Is #ba51af a light or a dark color?

It is a mid-tone. Relative luminance is 0.1942 and perceived brightness is 52%, so black text on it reaches 4.88:1.

Should I use black or white text on #ba51af?

Black. It scores 4.88:1 against #ba51af, versus 4.30:1 for white — AA at any size.

What is the complementary color of #ba51af?

#51BA5C sits directly opposite on the wheel. Softer options are the split-complements #7BBA51 and #51BA91, which give the same contrast with far less vibration.

What colors go well with #ba51af?

For interface work: #FAF4FA as the surface, #E8C5E4 for borders, #9B4B92 for secondary text, #449636 as an accent and #5B2456 for hover and pressed states. For a palette, the analogous pair #9151BA and #BA517B stays calm, while #51BA5C is the loudest partner.

What is #ba51af in CMYK for printing?

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

Is #ba51af warm or cool?

Neutral — it scores 47 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA5189; nudged cooler, #A04FBC.

Work with #ba51af in the Color Lab