Skip to content

#ba2ce5

a balanced, electric violet · neutral · closest name: Dark Orchid

RGB
186, 44, 229
HSL
286°, 78%, 54%
CMYK
19, 81, 0, 10
Luminance
0.1790

At a glance

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

Hex
#ba2ce5
Hue
286°
violet
Saturation
78%
electric
Lightness
54%
balanced
Brightness
90%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1790
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.59:1
Closest name
Dark Orchid
ΔE2000 6.5
Where it sits
Hue286° of 360°
Saturation78%
Lightness54%
Temperature
Warm ← → Cool58% 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#ba2ce5
RGBrgb(186, 44, 229)
HSLhsl(286, 78%, 54%)
CMYKcmyk(19%, 81%, 0%, 10%)
LABlab(49.4 77.6 -64.5)
LCHlch(49.4 100.9 320.3)
OKLCHoklch(0.599 0.264 316.5)
Decimal12201189
Display P3color(display-p3 0.729 0.173 0.898)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ce5 on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#ba2ce5 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006DEA
deuteranopia · #2A79E1
tritanopia · #B7598B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba2ce5 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF3FC
#F5E6F9
#EAC7F5
#DE9BF3
#CE69ED
#ba2ce5
#AE1BDA
#9116B6
#741291
#551169
#350B42
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #350B42
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F5E6F9;
  --brand-200: #EAC7F5;
  --brand-300: #DE9BF3;
  --brand-400: #CE69ED;
  --brand-500: #ba2ce5;
  --brand-600: #AE1BDA;
  --brand-700: #9116B6;
  --brand-800: #741291;
  --brand-900: #551169;
  --brand-950: #350B42;
  --brand: #ba2ce5;
  --brand-ink: #ffffff;
}

Colors that work with #ba2ce5

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#F9F4FA
Tinted page background
Border#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#63BA12
Second voice, not a rival
Dark variant#5A0E72
Hover, pressed, headers
Light variant#F8E8FC
Selected rows, tints
Dark surface#211424
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 #ba2ce5

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#57E52C
Analogous left#5E2CE5
Analogous right#E52CB3
Split-complement 1#B3E52C
Split-complement 2#2CE55E
Triadic 1#E5BA2C
Triadic 2#2CE5BA
Tetradic#E55E2C

RGB percentages

Red72.9%
Green17.3%
Blue89.8%

CMYK percentages

Cyan18.8%
Magenta80.8%
Yellow0.0%
Key (black)10.2%

Color previews

#ba2ce5 text on a black background

contrast 4.58:1

Card sample

#ba2ce5 text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ce5

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.

#ba2ce5 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba2ce5, answered

What color is #ba2ce5?

#ba2ce5 is a balanced electric violet, closest to Dark Orchid (ΔE2000 6.5). It sits at 286° on the hue wheel with 78% saturation and 54% lightness, which reads as neutral.

What is the RGB value of #ba2ce5?

rgb(186, 44, 229) — 186 red, 44 green and 229 blue out of 255, or 72.9% / 17.3% / 89.8% by channel.

Is #ba2ce5 a light or a dark color?

It is a dark color. Relative luminance is 0.1790 and perceived brightness is 52%, so white text on it reaches 4.59:1.

Should I use black or white text on #ba2ce5?

White. It scores 4.59:1 against #ba2ce5, versus 4.58:1 for black — AA at any size.

What is the complementary color of #ba2ce5?

#57E52C sits directly opposite on the wheel. Softer options are the split-complements #B3E52C and #2CE55E, which give the same contrast with far less vibration.

What colors go well with #ba2ce5?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #63BA12 as an accent and #5A0E72 for hover and pressed states. For a palette, the analogous pair #5E2CE5 and #E52CB3 stays calm, while #57E52C is the loudest partner.

What is #ba2ce5 in CMYK for printing?

cmyk(19%, 81%, 0%, 10%). 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 #ba2ce5 warm or cool?

Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E52CCC; nudged cooler, #7629E7.

Work with #ba2ce5 in the Color Lab