Skip to content

#ba5ade

a balanced, vivid violet · cool · closest name: Medium Orchid

RGB
186, 90, 222
HSL
284°, 67%, 61%
CMYK
16, 60, 0, 13
Luminance
0.2303

At a glance

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

Hex
#ba5ade
Hue
284°
violet
Saturation
67%
vivid
Lightness
61%
balanced
Brightness
87%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2303
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.61:1
Closest name
Medium Orchid
ΔE2000 2.1
Where it sits
Hue284° of 360°
Saturation67%
Lightness61%
Temperature
Warm ← → Cool59% 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#ba5ade
RGBrgb(186, 90, 222)
HSLhsl(284, 67%, 61%)
CMYKcmyk(16%, 60%, 0%, 13%)
LABlab(55.1 58.9 -51.3)
LCHlch(55.1 78.1 318.9)
OKLCHoklch(0.638 0.206 315.8)
Decimal12212958
Display P3color(display-p3 0.729 0.353 0.871)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba5ade on white: 3.75:1
AA ✗ fail · AA-large · AAA
Aa
#ba5ade on black: 5.61:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #337EE2
deuteranopia · #5A87DB
tritanopia · #B87194

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba5ade 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.

#F9F3FB
#F3E8F8
#E7CAF1
#D8A1EC
#C473E3
#ba5ade
#9F29CC
#8522AA
#6A1B88
#4E1863
#310F3E
Base = 500Lightest = 50 · #F9F3FBDarkest = 950 · #310F3E
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F3E8F8;
  --brand-200: #E7CAF1;
  --brand-300: #D8A1EC;
  --brand-400: #C473E3;
  --brand-500: #ba5ade;
  --brand-600: #9F29CC;
  --brand-700: #8522AA;
  --brand-800: #6A1B88;
  --brand-900: #4E1863;
  --brand-950: #310F3E;
  --brand: #ba5ade;
  --brand-ink: #000000;
}

Colors that work with #ba5ade

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E0C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#69AE1E
Second voice, not a rival
Dark variant#53156A
Hover, pressed, headers
Light variant#F6EAFB
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 #ba5ade

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#7EDE5A
Analogous left#785ADE
Analogous right#DE5AC0
Split-complement 1#C0DE5A
Split-complement 2#5ADE78
Triadic 1#DEBA5A
Triadic 2#5ADEBA
Tetradic#DE785A

RGB percentages

Red72.9%
Green35.3%
Blue87.1%

CMYK percentages

Cyan16.2%
Magenta59.5%
Yellow0.0%
Key (black)12.9%

Color previews

#ba5ade text on a black background

contrast 5.61:1

Card sample

#ba5ade text on a white background

contrast 3.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba5ade

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.

#ba5ade 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

Converts to four-color process without much drama. Proof it anyway.

#ba5ade, answered

What color is #ba5ade?

#ba5ade is a balanced vivid violet, closest to Medium Orchid (ΔE2000 2.1). It sits at 284° on the hue wheel with 67% saturation and 61% lightness, which reads as cool.

What is the RGB value of #ba5ade?

rgb(186, 90, 222) — 186 red, 90 green and 222 blue out of 255, or 72.9% / 35.3% / 87.1% by channel.

Is #ba5ade a light or a dark color?

It is a mid-tone. Relative luminance is 0.2303 and perceived brightness is 56%, so black text on it reaches 5.61:1.

Should I use black or white text on #ba5ade?

Black. It scores 5.61:1 against #ba5ade, versus 3.75:1 for white — AA at any size.

What is the complementary color of #ba5ade?

#7EDE5A sits directly opposite on the wheel. Softer options are the split-complements #C0DE5A and #5ADE78, which give the same contrast with far less vibration.

What colors go well with #ba5ade?

For interface work: #F9F4FA as the surface, #E0C0ED for borders, #854B9B for secondary text, #69AE1E as an accent and #53156A for hover and pressed states. For a palette, the analogous pair #785ADE and #DE5AC0 stays calm, while #7EDE5A is the loudest partner.

What is #ba5ade in CMYK for printing?

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

Is #ba5ade warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DE5AD2; nudged cooler, #8958E0.

Work with #ba5ade in the Color Lab