Skip to content

#ba38af

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

RGB
186, 56, 175
HSL
305°, 54%, 48%
CMYK
0, 70, 6, 27
Luminance
0.1636

At a glance

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

Hex
#ba38af
Hue
305°
magenta / pink
Saturation
54%
vivid
Lightness
48%
balanced
Brightness
73%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1636
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.92:1
Closest name
Medium Orchid
ΔE2000 8.2
Where it sits
Hue305° of 360°
Saturation54%
Lightness48%
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#ba38af
RGBrgb(186, 56, 175)
HSLhsl(305, 54%, 48%)
CMYKcmyk(0%, 70%, 6%, 27%)
LABlab(47.5 64.7 -36.4)
LCHlch(47.5 74.2 330.6)
OKLCHoklch(0.575 0.210 331.6)
Decimal12204207
Display P3color(display-p3 0.729 0.220 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba38af on white: 4.92:1
AA ✓ pass · AA-large · AAA
Aa
#ba38af on black: 4.27:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #2F65B2
deuteranopia · #6077AC
tritanopia · #C2466F

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba38af 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
#E5A9E0
#D87ED0
#CB53C1
#ba38af
#9D2F93
#7D2676
#5B1F56
#391336
Base = 600Lightest = 50 · #FBF4FADarkest = 950 · #391336
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F6E9F5;
  --brand-200: #EECEEB;
  --brand-300: #E5A9E0;
  --brand-400: #D87ED0;
  --brand-500: #CB53C1;
  --brand-600: #ba38af;
  --brand-700: #9D2F93;
  --brand-800: #7D2676;
  --brand-900: #5B1F56;
  --brand-950: #391336;
  --brand: #ba38af;
  --brand-ink: #ffffff;
}

Colors that work with #ba38af

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#ECC0E8
Hairlines and dividers
Muted text#9B4B94
Captions on the surface
Accent#3EA12B
Second voice, not a rival
Dark variant#621E5C
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 #ba38af

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#38BA43
Analogous left#8438BA
Analogous right#BA386E
Split-complement 1#6EBA38
Split-complement 2#38BA84
Triadic 1#AFBA38
Triadic 2#38AFBA
Tetradic#BA8438

RGB percentages

Red72.9%
Green22.0%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta69.9%
Yellow5.9%
Key (black)27.1%

Color previews

#ba38af text on a black background

contrast 4.27:1

Card sample

#ba38af text on a white background

contrast 4.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba38af

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.

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

#ba38af, answered

What color is #ba38af?

#ba38af 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 48% lightness, which reads as neutral.

What is the RGB value of #ba38af?

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

Is #ba38af a light or a dark color?

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

Should I use black or white text on #ba38af?

White. It scores 4.92:1 against #ba38af, versus 4.27:1 for black — AA at any size.

What is the complementary color of #ba38af?

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

What colors go well with #ba38af?

For interface work: #FAF4FA as the surface, #ECC0E8 for borders, #9B4B94 for secondary text, #3EA12B as an accent and #621E5C for hover and pressed states. For a palette, the analogous pair #8438BA and #BA386E stays calm, while #38BA43 is the loudest partner.

What is #ba38af 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 #ba38af 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 #BA387F; nudged cooler, #9736BD.

Work with #ba38af in the Color Lab