Skip to content

#ba2baf

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

RGB
186, 43, 175
HSL
305°, 62%, 45%
CMYK
0, 77, 6, 27
Luminance
0.1526

At a glance

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

Hex
#ba2baf
Hue
305°
magenta / pink
Saturation
62%
vivid
Lightness
45%
dark
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1526
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.18:1
Closest name
Dark Orchid
ΔE2000 8.7
Where it sits
Hue305° of 360°
Saturation62%
Lightness45%
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#ba2baf
RGBrgb(186, 43, 175)
HSLhsl(305, 62%, 45%)
CMYKcmyk(0%, 77%, 6%, 27%)
LABlab(46.0 68.8 -38.7)
LCHlch(46.0 78.9 330.7)
OKLCHoklch(0.564 0.224 331.6)
Decimal12200879
Display P3color(display-p3 0.729 0.169 0.686)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2baf on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#ba2baf on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #1D60B2
deuteranopia · #5B74AC
tritanopia · #C23D6C

Color scale — 50 to 950

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

#FBF4FB
#F7E8F6
#F0CCED
#EAA4E5
#DF76D7
#D549CA
#ba2baf
#A6269C
#851F7D
#601A5B
#3C1039
Base = 600Lightest = 50 · #FBF4FBDarkest = 950 · #3C1039
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E8F6;
  --brand-200: #F0CCED;
  --brand-300: #EAA4E5;
  --brand-400: #DF76D7;
  --brand-500: #D549CA;
  --brand-600: #ba2baf;
  --brand-700: #A6269C;
  --brand-800: #851F7D;
  --brand-900: #601A5B;
  --brand-950: #3C1039;
  --brand: #ba2baf;
  --brand-ink: #ffffff;
}

Colors that work with #ba2baf

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#9B4B95
Captions on the surface
Accent#3AAA22
Second voice, not a rival
Dark variant#681861
Hover, pressed, headers
Light variant#FAEAF9
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 #ba2baf

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#2BBA36
Analogous left#7D2BBA
Analogous right#BA2B68
Split-complement 1#68BA2B
Split-complement 2#2BBA7D
Triadic 1#AFBA2B
Triadic 2#2BAFBA
Tetradic#BA7D2B

RGB percentages

Red72.9%
Green16.9%
Blue68.6%

CMYK percentages

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

Color previews

#ba2baf text on a black background

contrast 4.05:1

Card sample

#ba2baf text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2baf

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.

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

#ba2baf, answered

What color is #ba2baf?

#ba2baf is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 8.7). It sits at 305° on the hue wheel with 62% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #ba2baf?

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

Is #ba2baf a light or a dark color?

It is a dark color. Relative luminance is 0.1526 and perceived brightness is 48%, so white text on it reaches 5.18:1.

Should I use black or white text on #ba2baf?

White. It scores 5.18:1 against #ba2baf, versus 4.05:1 for black — AA at any size.

What is the complementary color of #ba2baf?

#2BBA36 sits directly opposite on the wheel. Softer options are the split-complements #68BA2B and #2BBA7D, which give the same contrast with far less vibration.

What colors go well with #ba2baf?

For interface work: #FAF4FA as the surface, #EDC0E9 for borders, #9B4B95 for secondary text, #3AAA22 as an accent and #681861 for hover and pressed states. For a palette, the analogous pair #7D2BBA and #BA2B68 stays calm, while #2BBA36 is the loudest partner.

What is #ba2baf in CMYK for printing?

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

Is #ba2baf 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 #BA2B7B; nudged cooler, #9129BC.

Work with #ba2baf in the Color Lab