Skip to content

#ba24bb

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

RGB
186, 36, 187
HSL
300°, 68%, 44%
CMYK
1, 81, 0, 27
Luminance
0.1529

At a glance

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

Hex
#ba24bb
Hue
300°
magenta / pink
Saturation
68%
vivid
Lightness
44%
dark
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1529
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.18:1
Closest name
Dark Orchid
ΔE2000 7.1
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#ba24bb
RGBrgb(186, 36, 187)
HSLhsl(300, 68%, 44%)
CMYKcmyk(1%, 81%, 0%, 27%)
LABlab(46.0 72.5 -45.7)
LCHlch(46.0 85.7 327.8)
OKLCHoklch(0.567 0.238 327.9)
Decimal12199099
Display P3color(display-p3 0.729 0.141 0.733)

Copy-ready code

/* CSS */
color: #ba24bb;
background-color: #ba24bb;
/* Tailwind (arbitrary) */
class="text-[#ba24bb] bg-[#ba24bb]"
/* SCSS */
$brand: #ba24bb;
/* SwiftUI */
Color(red: 0.729, green: 0.141, blue: 0.733)
/* Android */
Color.parseColor("#ba24bb")
/* Flutter */
Color(0xFFBA24BB)
/* Python / OpenCV (BGR) */
(187, 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 #ba24bb · 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.06:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ba24bb as text scores 5.18:1 on white and 4.06:1 on black.

Accessibility — WCAG contrast

Aa
#ba24bb on white: 5.18:1
AA ✓ pass · AA-large · AAA
Aa
#ba24bb on black: 4.06:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061BF
deuteranopia · #5173B8
tritanopia · #C04071

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba24bb 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
#F1CAF2
#ECA1ED
#E372E4
#DA43DB
#CC28CD
#ba24bb
#881A89
#631763
#3E0E3E
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3E0E3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F8;
  --brand-200: #F1CAF2;
  --brand-300: #ECA1ED;
  --brand-400: #E372E4;
  --brand-500: #DA43DB;
  --brand-600: #CC28CD;
  --brand-700: #ba24bb;
  --brand-800: #881A89;
  --brand-900: #631763;
  --brand-950: #3E0E3E;
  --brand: #ba24bb;
  --brand-ink: #ffffff;
}

Colors that work with #ba24bb

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#ECC0ED
Hairlines and dividers
Muted text#9A4B9B
Captions on the surface
Accent#43AF1D
Second voice, not a rival
Dark variant#6A156B
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 #ba24bb

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#25BB24
Analogous left#6E24BB
Analogous right#BB2470
Split-complement 1#70BB24
Split-complement 2#24BB6E
Triadic 1#BBBA24
Triadic 2#24BBBA
Tetradic#BB6E24

RGB percentages

Red72.9%
Green14.1%
Blue73.3%

CMYK percentages

Cyan0.5%
Magenta80.7%
Yellow0.0%
Key (black)26.7%

Color previews

#ba24bb text on a black background

contrast 4.06:1

Card sample

#ba24bb text on a white background

contrast 5.18:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba24bb

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.

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

#ba24bb, answered

What color is #ba24bb?

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

What is the RGB value of #ba24bb?

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

Is #ba24bb a light or a dark color?

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

Should I use black or white text on #ba24bb?

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

What is the complementary color of #ba24bb?

#25BB24 sits directly opposite on the wheel. Softer options are the split-complements #70BB24 and #24BB6E, which give the same contrast with far less vibration.

What colors go well with #ba24bb?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #43AF1D as an accent and #6A156B for hover and pressed states. For a palette, the analogous pair #6E24BB and #BB2470 stays calm, while #25BB24 is the loudest partner.

What is #ba24bb in CMYK for printing?

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

Is #ba24bb 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 #BB2485; nudged cooler, #8322BD.

Work with #ba24bb in the Color Lab