Skip to content

#ba4eaf

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

RGB
186, 78, 175
HSL
306°, 44%, 52%
CMYK
0, 58, 6, 27
Luminance
0.1898

At a glance

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

Hex
#ba4eaf
Hue
306°
magenta / pink
Saturation
44%
soft
Lightness
52%
balanced
Brightness
73%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1898
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.80:1
Closest name
Medium Orchid
ΔE2000 6.6
Where it sits
Hue306° of 360°
Saturation44%
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#ba4eaf
RGBrgb(186, 78, 175)
HSLhsl(306, 44%, 52%)
CMYKcmyk(0%, 58%, 6%, 27%)
LABlab(50.7 55.7 -31.3)
LCHlch(50.7 63.9 330.7)
OKLCHoklch(0.598 0.181 331.7)
Decimal12209839
Display P3color(display-p3 0.729 0.306 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4eaf on white: 4.38:1
AA ✗ fail · AA-large · AAA
Aa
#ba4eaf on black: 4.80:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #496FB2
deuteranopia · #6B7EAC
tritanopia · #C15777

Color scale — 50 to 950

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

#FAF5F9
#F5EAF4
#EBD1E8
#E0AEDB
#D086C8
#C05EB6
#ba4eaf
#93398A
#752E6E
#562451
#361733
Base = 600Lightest = 50 · #FAF5F9Darkest = 950 · #361733
:root {
  --brand-50: #FAF5F9;
  --brand-100: #F5EAF4;
  --brand-200: #EBD1E8;
  --brand-300: #E0AEDB;
  --brand-400: #D086C8;
  --brand-500: #C05EB6;
  --brand-600: #ba4eaf;
  --brand-700: #93398A;
  --brand-800: #752E6E;
  --brand-900: #562451;
  --brand-950: #361733;
  --brand: #ba4eaf;
  --brand-ink: #000000;
}

Colors that work with #ba4eaf

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#E8C4E4
Hairlines and dividers
Muted text#9B4B93
Captions on the surface
Accent#449735
Second voice, not a rival
Dark variant#5C2456
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 #ba4eaf

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#4EBA59
Analogous left#8F4EBA
Analogous right#BA4E79
Split-complement 1#79BA4E
Split-complement 2#4EBA8F
Triadic 1#AFBA4E
Triadic 2#4EAFBA
Tetradic#BA8F4E

RGB percentages

Red72.9%
Green30.6%
Blue68.6%

CMYK percentages

Cyan0.0%
Magenta58.1%
Yellow5.9%
Key (black)27.1%

Color previews

#ba4eaf text on a black background

contrast 4.80:1

Card sample

#ba4eaf text on a white background

contrast 4.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4eaf

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.

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

#ba4eaf, answered

What color is #ba4eaf?

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

What is the RGB value of #ba4eaf?

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

Is #ba4eaf a light or a dark color?

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

Should I use black or white text on #ba4eaf?

Black. It scores 4.80:1 against #ba4eaf, versus 4.38:1 for white — AA at any size.

What is the complementary color of #ba4eaf?

#4EBA59 sits directly opposite on the wheel. Softer options are the split-complements #79BA4E and #4EBA8F, which give the same contrast with far less vibration.

What colors go well with #ba4eaf?

For interface work: #FAF4FA as the surface, #E8C4E4 for borders, #9B4B93 for secondary text, #449735 as an accent and #5C2456 for hover and pressed states. For a palette, the analogous pair #8F4EBA and #BA4E79 stays calm, while #4EBA59 is the loudest partner.

What is #ba4eaf in CMYK for printing?

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

Is #ba4eaf 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 #BA4E88; nudged cooler, #9F4CBD.

Work with #ba4eaf in the Color Lab