Skip to content

#ba26ba

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

RGB
186, 38, 186
HSL
300°, 66%, 44%
CMYK
0, 80, 0, 27
Luminance
0.1537

At a glance

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

Hex
#ba26ba
Hue
300°
magenta / pink
Saturation
66%
vivid
Lightness
44%
dark
Brightness
73%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1537
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.15:1
Closest name
Dark Orchid
ΔE2000 7.3
Where it sits
Hue300° of 360°
Saturation66%
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#ba26ba
RGBrgb(186, 38, 186)
HSLhsl(300, 66%, 44%)
CMYKcmyk(0%, 80%, 0%, 27%)
LABlab(46.1 71.8 -44.9)
LCHlch(46.1 84.7 328.0)
OKLCHoklch(0.567 0.236 328.1)
Decimal12199610
Display P3color(display-p3 0.729 0.149 0.729)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba26ba on white: 5.15:1
AA ✓ pass · AA-large · AAA
Aa
#ba26ba on black: 4.07:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0061BE
deuteranopia · #5274B7
tritanopia · #C04071

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba26ba 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
#F1CBF1
#ECA2EC
#E273E2
#D945D9
#CB29CB
#ba26ba
#881C88
#621862
#3E0F3E
Base = 700Lightest = 50 · #FBF3FBDarkest = 950 · #3E0F3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F8;
  --brand-200: #F1CBF1;
  --brand-300: #ECA2EC;
  --brand-400: #E273E2;
  --brand-500: #D945D9;
  --brand-600: #CB29CB;
  --brand-700: #ba26ba;
  --brand-800: #881C88;
  --brand-900: #621862;
  --brand-950: #3E0F3E;
  --brand: #ba26ba;
  --brand-ink: #ffffff;
}

Colors that work with #ba26ba

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#43AE1E
Second voice, not a rival
Dark variant#6A166A
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 #ba26ba

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#26BA26
Analogous left#7026BA
Analogous right#BA2670
Split-complement 1#70BA26
Split-complement 2#26BA70
Triadic 1#BABA26
Triadic 2#26BABA
Tetradic#BA7026

RGB percentages

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

CMYK percentages

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

Color previews

#ba26ba text on a black background

contrast 4.07:1

Card sample

#ba26ba text on a white background

contrast 5.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba26ba

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.

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

#ba26ba, answered

What color is #ba26ba?

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

What is the RGB value of #ba26ba?

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

Is #ba26ba a light or a dark color?

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

Should I use black or white text on #ba26ba?

White. It scores 5.15:1 against #ba26ba, versus 4.07:1 for black — AA at any size.

What is the complementary color of #ba26ba?

#26BA26 sits directly opposite on the wheel. Softer options are the split-complements #70BA26 and #26BA70, which give the same contrast with far less vibration.

What colors go well with #ba26ba?

For interface work: #FAF4FA as the surface, #EDC0ED for borders, #9B4B9B for secondary text, #43AE1E as an accent and #6A166A for hover and pressed states. For a palette, the analogous pair #7026BA and #BA2670 stays calm, while #26BA26 is the loudest partner.

What is #ba26ba in CMYK for printing?

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

Is #ba26ba 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 #BA2684; nudged cooler, #8424BC.

Work with #ba26ba in the Color Lab