Skip to content

#ba2ae8

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

RGB
186, 42, 232
HSL
286°, 81%, 54%
CMYK
20, 82, 0, 9
Luminance
0.1792

At a glance

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

Hex
#ba2ae8
Hue
286°
violet
Saturation
81%
electric
Lightness
54%
balanced
Brightness
91%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1792
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.58:1
Closest name
Dark Orchid
ΔE2000 6.6
Where it sits
Hue286° of 360°
Saturation81%
Lightness54%
Temperature
Warm ← → Cool58% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba2ae8
RGBrgb(186, 42, 232)
HSLhsl(286, 81%, 54%)
CMYKcmyk(20%, 82%, 0%, 9%)
LABlab(49.4 78.7 -66.1)
LCHlch(49.4 102.8 319.9)
OKLCHoklch(0.599 0.268 315.8)
Decimal12200680
Display P3color(display-p3 0.729 0.165 0.910)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ae8 on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ba2ae8 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EED
deuteranopia · #2279E4
tritanopia · #B65A8C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba2ae8 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
#EAC6F5
#DE9AF4
#CE67EF
#ba2ae8
#AD18DD
#9014B8
#741093
#55106B
#350A43
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #350A43
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F5E6F9;
  --brand-200: #EAC6F5;
  --brand-300: #DE9AF4;
  --brand-400: #CE67EF;
  --brand-500: #ba2ae8;
  --brand-600: #AD18DD;
  --brand-700: #9014B8;
  --brand-800: #741093;
  --brand-900: #55106B;
  --brand-950: #350A43;
  --brand: #ba2ae8;
  --brand-ink: #ffffff;
}

Colors that work with #ba2ae8

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#64BC10
Second voice, not a rival
Dark variant#5A0C73
Hover, pressed, headers
Light variant#F8E8FD
Selected rows, tints
Dark surface#201424
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 #ba2ae8

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#58E82A
Analogous left#5B2AE8
Analogous right#E82AB7
Split-complement 1#B7E82A
Split-complement 2#2AE85B
Triadic 1#E8BA2A
Triadic 2#2AE8BA
Tetradic#E85B2A

RGB percentages

Red72.9%
Green16.5%
Blue91.0%

CMYK percentages

Cyan19.8%
Magenta81.9%
Yellow0.0%
Key (black)9.0%

Color previews

#ba2ae8 text on a black background

contrast 4.58:1

Card sample

#ba2ae8 text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ae8

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.

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

#ba2ae8, answered

What color is #ba2ae8?

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

What is the RGB value of #ba2ae8?

rgb(186, 42, 232) — 186 red, 42 green and 232 blue out of 255, or 72.9% / 16.5% / 91% by channel.

Is #ba2ae8 a light or a dark color?

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

Should I use black or white text on #ba2ae8?

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

What is the complementary color of #ba2ae8?

#58E82A sits directly opposite on the wheel. Softer options are the split-complements #B7E82A and #2AE85B, which give the same contrast with far less vibration.

What colors go well with #ba2ae8?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #64BC10 as an accent and #5A0C73 for hover and pressed states. For a palette, the analogous pair #5B2AE8 and #E82AB7 stays calm, while #58E82A is the loudest partner.

What is #ba2ae8 in CMYK for printing?

cmyk(20%, 82%, 0%, 9%). 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 #ba2ae8 warm or cool?

Cool — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E82AD0; nudged cooler, #7428EA.

Work with #ba2ae8 in the Color Lab