Skip to content

#ba37af

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

RGB
186, 55, 175
HSL
305°, 54%, 47%
CMYK
0, 70, 6, 27
Luminance
0.1627

At a glance

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

Hex
#ba37af
Hue
305°
magenta / pink
Saturation
54%
vivid
Lightness
47%
balanced
Brightness
73%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1627
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.94:1
Closest name
Medium Orchid
ΔE2000 8.2
Where it sits
Hue305° of 360°
Saturation54%
Lightness47%
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#ba37af
RGBrgb(186, 55, 175)
HSLhsl(305, 54%, 47%)
CMYKcmyk(0%, 70%, 6%, 27%)
LABlab(47.3 65.0 -36.6)
LCHlch(47.3 74.6 330.6)
OKLCHoklch(0.574 0.211 331.6)
Decimal12203951
Display P3color(display-p3 0.729 0.216 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba37af on white: 4.94:1
AA ✓ pass · AA-large · AAA
Aa
#ba37af on black: 4.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2E65B2
deuteranopia · #5F77AC
tritanopia · #C2456F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba37af 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
#EECEEB
#E5A8E0
#D97DD1
#CC52C2
#ba37af
#9D2F94
#7E2577
#5C1F57
#391336
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #391336
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F6E9F5;
  --brand-200: #EECEEB;
  --brand-300: #E5A8E0;
  --brand-400: #D97DD1;
  --brand-500: #CC52C2;
  --brand-600: #ba37af;
  --brand-700: #9D2F94;
  --brand-800: #7E2577;
  --brand-900: #5C1F57;
  --brand-950: #391336;
  --brand: #ba37af;
  --brand-ink: #ffffff;
}

Colors that work with #ba37af

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#ECC0E9
Hairlines and dividers
Muted text#9B4B94
Captions on the surface
Accent#3FA22A
Second voice, not a rival
Dark variant#621D5D
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 #ba37af

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#37BA42
Analogous left#8437BA
Analogous right#BA376E
Split-complement 1#6EBA37
Split-complement 2#37BA84
Triadic 1#AFBA37
Triadic 2#37AFBA
Tetradic#BA8437

RGB percentages

Red72.9%
Green21.6%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta70.4%
Yellow5.9%
Key (black)27.1%

Color previews

#ba37af text on a black background

contrast 4.25:1

Card sample

#ba37af text on a white background

contrast 4.94:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba37af

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.

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

#ba37af, answered

What color is #ba37af?

#ba37af is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 8.2). It sits at 305° on the hue wheel with 54% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #ba37af?

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

Is #ba37af a light or a dark color?

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

Should I use black or white text on #ba37af?

White. It scores 4.94:1 against #ba37af, versus 4.25:1 for black — AA at any size.

What is the complementary color of #ba37af?

#37BA42 sits directly opposite on the wheel. Softer options are the split-complements #6EBA37 and #37BA84, which give the same contrast with far less vibration.

What colors go well with #ba37af?

For interface work: #FAF4FA as the surface, #ECC0E9 for borders, #9B4B94 for secondary text, #3FA22A as an accent and #621D5D for hover and pressed states. For a palette, the analogous pair #8437BA and #BA376E stays calm, while #37BA42 is the loudest partner.

What is #ba37af in CMYK for printing?

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

Is #ba37af 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 #BA377F; nudged cooler, #9635BD.

Work with #ba37af in the Color Lab