Skip to content

#ba2ac9

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

RGB
186, 42, 201
HSL
294°, 65%, 48%
CMYK
8, 79, 0, 21
Luminance
0.1631

At a glance

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

Hex
#ba2ac9
Hue
294°
magenta / pink
Saturation
65%
vivid
Lightness
48%
balanced
Brightness
79%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1631
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.93:1
Closest name
Dark Orchid
ΔE2000 6.2
Where it sits
Hue294° of 360°
Saturation65%
Lightness48%
Temperature
Warm ← → Cool53% 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#ba2ac9
RGBrgb(186, 42, 201)
HSLhsl(294, 65%, 48%)
CMYKcmyk(8%, 79%, 0%, 21%)
LABlab(47.4 73.2 -51.6)
LCHlch(47.4 89.6 324.8)
OKLCHoklch(0.579 0.244 323.7)
Decimal12200649
Display P3color(display-p3 0.729 0.165 0.788)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ac9 on white: 4.93:1
AA ✓ pass · AA-large · AAA
Aa
#ba2ac9 on black: 4.26:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066CD
deuteranopia · #4976C5
tritanopia · #BD4A7A

Color scale — 50 to 950

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

#FBF3FB
#F6E8F8
#EDCBF1
#E5A2EC
#D774E2
#CA45D8
#ba2ac9
#9C23A9
#7D1C87
#5B1862
#390F3D
Base = 600Lightest = 50 · #FBF3FBDarkest = 950 · #390F3D
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F6E8F8;
  --brand-200: #EDCBF1;
  --brand-300: #E5A2EC;
  --brand-400: #D774E2;
  --brand-500: #CA45D8;
  --brand-600: #ba2ac9;
  --brand-700: #9C23A9;
  --brand-800: #7D1C87;
  --brand-900: #5B1862;
  --brand-950: #390F3D;
  --brand: #ba2ac9;
  --brand-ink: #ffffff;
}

Colors that work with #ba2ac9

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#E8C0ED
Hairlines and dividers
Muted text#934B9B
Captions on the surface
Accent#50AD1F
Second voice, not a rival
Dark variant#621669
Hover, pressed, headers
Light variant#F9EAFB
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 #ba2ac9

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#39C92A
Analogous left#6A2AC9
Analogous right#C92A88
Split-complement 1#88C92A
Split-complement 2#2AC96A
Triadic 1#C9BA2A
Triadic 2#2AC9BA
Tetradic#C96A2A

RGB percentages

Red72.9%
Green16.5%
Blue78.8%

CMYK percentages

Cyan7.5%
Magenta79.1%
Yellow0.0%
Key (black)21.2%

Color previews

#ba2ac9 text on a black background

contrast 4.26:1

Card sample

#ba2ac9 text on a white background

contrast 4.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ac9

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.

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

#ba2ac9, answered

What color is #ba2ac9?

#ba2ac9 is a balanced vivid magenta / pink, closest to Dark Orchid (ΔE2000 6.2). It sits at 294° on the hue wheel with 65% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #ba2ac9?

rgb(186, 42, 201) — 186 red, 42 green and 201 blue out of 255, or 72.9% / 16.5% / 78.8% by channel.

Is #ba2ac9 a light or a dark color?

It is a dark color. Relative luminance is 0.1631 and perceived brightness is 50%, so white text on it reaches 4.93:1.

Should I use black or white text on #ba2ac9?

White. It scores 4.93:1 against #ba2ac9, versus 4.26:1 for black — AA at any size.

What is the complementary color of #ba2ac9?

#39C92A sits directly opposite on the wheel. Softer options are the split-complements #88C92A and #2AC96A, which give the same contrast with far less vibration.

What colors go well with #ba2ac9?

For interface work: #FAF4FA as the surface, #E8C0ED for borders, #934B9B for secondary text, #50AD1F as an accent and #621669 for hover and pressed states. For a palette, the analogous pair #6A2AC9 and #C92A88 stays calm, while #39C92A is the loudest partner.

What is #ba2ac9 in CMYK for printing?

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

Is #ba2ac9 warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C92A9E; nudged cooler, #8028CB.

Work with #ba2ac9 in the Color Lab