Skip to content

#ba03ac

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

RGB
186, 3, 172
HSL
305°, 97%, 37%
CMYK
0, 98, 8, 27
Luminance
0.1348

At a glance

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

Hex
#ba03ac
Hue
305°
magenta / pink
Saturation
97%
electric
Lightness
37%
dark
Brightness
73%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1348
WCAG relative
Temperature
Neutral
47/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.68:1
Closest name
Dark Orchid
ΔE2000 8.7
Where it sits
Hue305° of 360°
Saturation97%
Lightness37%
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#ba03ac
RGBrgb(186, 3, 172)
HSLhsl(305, 97%, 37%)
CMYKcmyk(0%, 98%, 8%, 27%)
LABlab(43.5 75.2 -40.9)
LCHlch(43.5 85.6 331.5)
OKLCHoklch(0.546 0.244 332.5)
Decimal12190636
Display P3color(display-p3 0.729 0.012 0.675)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba03ac on white: 5.68:1
AA ✓ pass · AA-large · AAA
Aa
#ba03ac on black: 3.70:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0058B0
deuteranopia · #536FA8
tritanopia · #C32A64

Color scale — 50 to 950

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

#FDF1FC
#FCE4FA
#FBC1F6
#FD91F5
#FC59F0
#FB22EB
#F104DF
#ba03ac
#A10394
#74076B
#480443
Base = 700Lightest = 50 · #FDF1FCDarkest = 950 · #480443
:root {
  --brand-50: #FDF1FC;
  --brand-100: #FCE4FA;
  --brand-200: #FBC1F6;
  --brand-300: #FD91F5;
  --brand-400: #FC59F0;
  --brand-500: #FB22EB;
  --brand-600: #F104DF;
  --brand-700: #ba03ac;
  --brand-800: #A10394;
  --brand-900: #74076B;
  --brand-950: #480443;
  --brand: #ba03ac;
  --brand-ink: #ffffff;
}

Colors that work with #ba03ac

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#24CC00
Second voice, not a rival
Dark variant#7D0274
Hover, pressed, headers
Light variant#FFE6FD
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 #ba03ac

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#03BA11
Analogous left#6D03BA
Analogous right#BA0351
Split-complement 1#51BA03
Split-complement 2#03BA6D
Triadic 1#ACBA03
Triadic 2#03ACBA
Tetradic#BA6D03

RGB percentages

Red72.9%
Green1.2%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta98.4%
Yellow7.5%
Key (black)27.1%

Color previews

#ba03ac text on a black background

contrast 3.70:1

Card sample

#ba03ac text on a white background

contrast 5.68:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba03ac

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.

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

#ba03ac, answered

What color is #ba03ac?

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

What is the RGB value of #ba03ac?

rgb(186, 3, 172) — 186 red, 3 green and 172 blue out of 255, or 72.9% / 1.2% / 67.5% by channel.

Is #ba03ac a light or a dark color?

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

Should I use black or white text on #ba03ac?

White. It scores 5.68:1 against #ba03ac, versus 3.70:1 for black — AA at any size.

What is the complementary color of #ba03ac?

#03BA11 sits directly opposite on the wheel. Softer options are the split-complements #51BA03 and #03BA6D, which give the same contrast with far less vibration.

What colors go well with #ba03ac?

For interface work: #FAF4FA as the surface, #EDC0E9 for borders, #9B4B95 for secondary text, #24CC00 as an accent and #7D0274 for hover and pressed states. For a palette, the analogous pair #6D03BA and #BA0351 stays calm, while #03BA11 is the loudest partner.

What is #ba03ac in CMYK for printing?

cmyk(0%, 98%, 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 #ba03ac 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 #BA0369; nudged cooler, #8601BC.

Work with #ba03ac in the Color Lab