#ba24bb
a dark, vivid magenta / pink · neutral · closest name: Dark Orchid
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.
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 |
| RGB | rgb(186, 36, 187) |
| HSL | hsl(300, 68%, 44%) |
| CMYK | cmyk(1%, 81%, 0%, 27%) |
| LAB | lab(46.0 72.5 -45.7) |
| LCH | lch(46.0 85.7 327.8) |
| OKLCH | oklch(0.567 0.238 327.9) |
| Decimal | 12199099 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #ba24bb
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #6E24BB | Neighbour, quieter | |
| Analogous right | #BB2470 | Neighbour, quieter | |
| Split-complement 1 | #70BB24 | Contrast without the clash | |
| Split-complement 2 | #24BB6E | Contrast without the clash | |
| Triadic 1 | #BBBA24 | Even thirds — balanced and loud | |
| Triadic 2 | #24BBBA | Even thirds — balanced and loud | |
| Tetradic | #BB6E24 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ba24bb text on a black background
contrast 4.06:1
#ba24bb text on a white background
contrast 5.18:1
CSS3 live lab
The quick brown fox
color: #ba24bb;
background-color: #ba24bb;
Glowing headline
text-shadow: 2px 2px 8px #ba24bb;
Soft neon halo
text-shadow: 0 0 14px rgba(186, 36, 187, 0.45);
box-shadow: 0 12px 32px -8px rgba(186, 36, 187, 0.45);
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.
Closest color with a full write-up: Plum (#8e4585) — ΔE2000 11.3 away, with its history, psychology and brand usage.
#ba24bb in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.