Skip to content

#ba4ec2

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

RGB
186, 78, 194
HSL
296°, 49%, 53%
CMYK
4, 60, 0, 24
Luminance
0.1978

At a glance

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

Hex
#ba4ec2
Hue
296°
magenta / pink
Saturation
49%
vivid
Lightness
53%
balanced
Brightness
76%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1978
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.96:1
Closest name
Medium Orchid
ΔE2000 3.2
Where it sits
Hue296° of 360°
Saturation49%
Lightness53%
Temperature
Warm ← → Cool52% 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#ba4ec2
RGBrgb(186, 78, 194)
HSLhsl(296, 49%, 53%)
CMYKcmyk(4%, 60%, 0%, 24%)
LABlab(51.6 59.0 -40.9)
LCHlch(51.6 71.8 325.3)
OKLCHoklch(0.608 0.197 324.9)
Decimal12209858
Display P3color(display-p3 0.729 0.306 0.761)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4ec2 on white: 4.24:1
AA ✗ fail · AA-large · AAA
Aa
#ba4ec2 on black: 4.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3B72C6
deuteranopia · #6280BF
tritanopia · #BE5E81

Color scale — 50 to 950

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

#FAF4FA
#F5EAF6
#EAD0EC
#DEACE2
#CE82D4
#ba4ec2
#AE3FB6
#913498
#742A79
#552259
#351537
Base = 500Lightest = 50 · #FAF4FADarkest = 950 · #351537
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F5EAF6;
  --brand-200: #EAD0EC;
  --brand-300: #DEACE2;
  --brand-400: #CE82D4;
  --brand-500: #ba4ec2;
  --brand-600: #AE3FB6;
  --brand-700: #913498;
  --brand-800: #742A79;
  --brand-900: #552259;
  --brand-950: #351537;
  --brand: #ba4ec2;
  --brand-ink: #000000;
}

Colors that work with #ba4ec2

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#E7C2EA
Hairlines and dividers
Muted text#954B9B
Captions on the surface
Accent#529C30
Second voice, not a rival
Dark variant#5B215F
Hover, pressed, headers
Light variant#F8ECF8
Selected rows, tints
Dark surface#231424
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 #ba4ec2

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
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#56C24E
Analogous left#804EC2
Analogous right#C24E90
Split-complement 1#90C24E
Split-complement 2#4EC280
Triadic 1#C2BA4E
Triadic 2#4EC2BA
Tetradic#C2804E

RGB percentages

Red72.9%
Green30.6%
Blue76.1%

CMYK percentages

Cyan4.1%
Magenta59.8%
Yellow0.0%
Key (black)23.9%

Color previews

#ba4ec2 text on a black background

contrast 4.96:1

Card sample

#ba4ec2 text on a white background

contrast 4.24:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4ec2

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.

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

#ba4ec2, answered

What color is #ba4ec2?

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

What is the RGB value of #ba4ec2?

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

Is #ba4ec2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1978 and perceived brightness is 53%, so black text on it reaches 4.96:1.

Should I use black or white text on #ba4ec2?

Black. It scores 4.96:1 against #ba4ec2, versus 4.24:1 for white — AA at any size.

What is the complementary color of #ba4ec2?

#56C24E sits directly opposite on the wheel. Softer options are the split-complements #90C24E and #4EC280, which give the same contrast with far less vibration.

What colors go well with #ba4ec2?

For interface work: #FAF4FA as the surface, #E7C2EA for borders, #954B9B for secondary text, #529C30 as an accent and #5B215F for hover and pressed states. For a palette, the analogous pair #804EC2 and #C24E90 stays calm, while #56C24E is the loudest partner.

What is #ba4ec2 in CMYK for printing?

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

Is #ba4ec2 warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C24E9F; nudged cooler, #904CC4.

Work with #ba4ec2 in the Color Lab