Skip to content

#ba09ab

a dark, electric magenta / pink · neutral · closest name: Medium Violet Red

RGB
186, 9, 171
HSL
305°, 91%, 38%
CMYK
0, 95, 8, 27
Luminance
0.1357

At a glance

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

Hex
#ba09ab
Hue
305°
magenta / pink
Saturation
91%
electric
Lightness
38%
dark
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1357
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.65:1
Closest name
Medium Violet Red
ΔE2000 8.7
Where it sits
Hue305° of 360°
Saturation91%
Lightness38%
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#ba09ab
RGBrgb(186, 9, 171)
HSLhsl(305, 91%, 38%)
CMYKcmyk(0%, 95%, 8%, 27%)
LABlab(43.6 74.5 -40.1)
LCHlch(43.6 84.6 331.7)
OKLCHoklch(0.547 0.242 332.8)
Decimal12192171
Display P3color(display-p3 0.729 0.035 0.671)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba09ab on white: 5.65:1
AA ✓ pass · AA-large · AAA
Aa
#ba09ab on black: 3.71:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0059AF
deuteranopia · #556FA7
tritanopia · #C32B64

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba09ab is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FDF2FC
#FBE5F9
#F9C3F4
#FA94F1
#F75EEA
#F529E3
#EA0BD7
#ba09ab
#9C088F
#700A68
#460641
Base = 700Lightest = 50 · #FDF2FCDarkest = 950 · #460641
:root {
  --brand-50: #FDF2FC;
  --brand-100: #FBE5F9;
  --brand-200: #F9C3F4;
  --brand-300: #FA94F1;
  --brand-400: #F75EEA;
  --brand-500: #F529E3;
  --brand-600: #EA0BD7;
  --brand-700: #ba09ab;
  --brand-800: #9C088F;
  --brand-900: #700A68;
  --brand-950: #460641;
  --brand: #ba09ab;
  --brand-ink: #ffffff;
}

Colors that work with #ba09ab

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#EDC0E9
Hairlines and dividers
Muted text#9B4B94
Captions on the surface
Accent#26C705
Second voice, not a rival
Dark variant#7A0670
Hover, pressed, headers
Light variant#FEE7FC
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 #ba09ab

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#09BA18
Analogous left#7009BA
Analogous right#BA0952
Split-complement 1#52BA09
Split-complement 2#09BA70
Triadic 1#ABBA09
Triadic 2#09ABBA
Tetradic#BA7009

RGB percentages

Red72.9%
Green3.5%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta95.2%
Yellow8.1%
Key (black)27.1%

Color previews

#ba09ab text on a black background

contrast 3.71:1

Card sample

#ba09ab text on a white background

contrast 5.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba09ab

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.

#ba09ab 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba09ab, answered

What color is #ba09ab?

#ba09ab is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 8.7). It sits at 305° on the hue wheel with 91% saturation and 38% lightness, which reads as neutral.

What is the RGB value of #ba09ab?

rgb(186, 9, 171) — 186 red, 9 green and 171 blue out of 255, or 72.9% / 3.5% / 67.1% by channel.

Is #ba09ab a light or a dark color?

It is a dark color. Relative luminance is 0.1357 and perceived brightness is 46%, so white text on it reaches 5.65:1.

Should I use black or white text on #ba09ab?

White. It scores 5.65:1 against #ba09ab, versus 3.71:1 for black — AA at any size.

What is the complementary color of #ba09ab?

#09BA18 sits directly opposite on the wheel. Softer options are the split-complements #52BA09 and #09BA70, which give the same contrast with far less vibration.

What colors go well with #ba09ab?

For interface work: #FAF4FA as the surface, #EDC0E9 for borders, #9B4B94 for secondary text, #26C705 as an accent and #7A0670 for hover and pressed states. For a palette, the analogous pair #7009BA and #BA0952 stays calm, while #09BA18 is the loudest partner.

What is #ba09ab in CMYK for printing?

cmyk(0%, 95%, 8%, 27%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ba09ab 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 #BA096A; nudged cooler, #8907BC.

Work with #ba09ab in the Color Lab