Skip to content

#ba24ba

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

RGB
186, 36, 186
HSL
300°, 68%, 44%
CMYK
0, 81, 0, 27
Luminance
0.1525

At a glance

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

Hex
#ba24ba
Hue
300°
magenta / pink
Saturation
68%
vivid
Lightness
44%
dark
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1525
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.19:1
Closest name
Dark Orchid
ΔE2000 7.2
Where it sits
Hue300° of 360°
Saturation68%
Lightness44%
Temperature
Warm ← → Cool50% 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#ba24ba
RGBrgb(186, 36, 186)
HSLhsl(300, 68%, 44%)
CMYKcmyk(0%, 81%, 0%, 27%)
LABlab(46.0 72.3 -45.2)
LCHlch(46.0 85.3 328.0)
OKLCHoklch(0.566 0.238 328.2)
Decimal12199098
Display P3color(display-p3 0.729 0.141 0.729)

Copy-ready code

/* CSS */
color: #ba24ba;
background-color: #ba24ba;
/* Tailwind (arbitrary) */
class="text-[#ba24ba] bg-[#ba24ba]"
/* SCSS */
$brand: #ba24ba;
/* SwiftUI */
Color(red: 0.729, green: 0.141, blue: 0.729)
/* Android */
Color.parseColor("#ba24ba")
/* Flutter */
Color(0xFFBA24BA)
/* Python / OpenCV (BGR) */
(186, 36, 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 #ba24ba · 5.19:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.19: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: #ba24ba as text scores 5.19:1 on white and 4.05:1 on black.

Accessibility — WCAG contrast

Aa
#ba24ba on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#ba24ba on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061BE
deuteranopia · #5273B7
tritanopia · #C03F71

Color scale — 50 to 950

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

#FBF3FB
#F8E8F8
#F2CAF2
#EDA1ED
#E472E4
#DB43DB
#CD28CD
#ba24ba
#891A89
#631763
#3E0E3E
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3E0E3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F8;
  --brand-200: #F2CAF2;
  --brand-300: #EDA1ED;
  --brand-400: #E472E4;
  --brand-500: #DB43DB;
  --brand-600: #CD28CD;
  --brand-700: #ba24ba;
  --brand-800: #891A89;
  --brand-900: #631763;
  --brand-950: #3E0E3E;
  --brand: #ba24ba;
  --brand-ink: #ffffff;
}

Colors that work with #ba24ba

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#EDC0ED
Hairlines and dividers
Muted text#9B4B9B
Captions on the surface
Accent#41AF1D
Second voice, not a rival
Dark variant#6B156B
Hover, pressed, headers
Light variant#FBEAFB
Selected rows, tints
Dark surface#241424
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 #ba24ba

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#24BA24
Analogous left#6F24BA
Analogous right#BA246F
Split-complement 1#6FBA24
Split-complement 2#24BA6F
Triadic 1#BABA24
Triadic 2#24BABA
Tetradic#BA6F24

RGB percentages

Red72.9%
Green14.1%
Blue72.9%

CMYK percentages

Cyan0.0%
Magenta80.6%
Yellow0.0%
Key (black)27.1%

Color previews

#ba24ba text on a black background

contrast 4.05:1

Card sample

#ba24ba text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba24ba

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.

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

#ba24ba, answered

What color is #ba24ba?

#ba24ba is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7.2). It sits at 300° on the hue wheel with 68% saturation and 44% lightness, which reads as neutral.

What is the RGB value of #ba24ba?

rgb(186, 36, 186) — 186 red, 36 green and 186 blue out of 255, or 72.9% / 14.1% / 72.9% by channel.

Is #ba24ba a light or a dark color?

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

Should I use black or white text on #ba24ba?

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

What is the complementary color of #ba24ba?

#24BA24 sits directly opposite on the wheel. Softer options are the split-complements #6FBA24 and #24BA6F, which give the same contrast with far less vibration.

What colors go well with #ba24ba?

For interface work: #FAF4FA as the surface, #EDC0ED for borders, #9B4B9B for secondary text, #41AF1D as an accent and #6B156B for hover and pressed states. For a palette, the analogous pair #6F24BA and #BA246F stays calm, while #24BA24 is the loudest partner.

What is #ba24ba in CMYK for printing?

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

Is #ba24ba warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BA2483; nudged cooler, #8422BC.

Work with #ba24ba in the Color Lab