Skip to content

#ba6ad2

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

RGB
186, 106, 210
HSL
286°, 54%, 62%
CMYK
11, 50, 0, 18
Luminance
0.2540

At a glance

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

Hex
#ba6ad2
Hue
286°
violet
Saturation
54%
vivid
Lightness
62%
balanced
Brightness
82%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2540
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.08:1
Closest name
Medium Orchid
ΔE2000 4.7
Where it sits
Hue286° of 360°
Saturation54%
Lightness62%
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#ba6ad2
RGBrgb(186, 106, 210)
HSLhsl(286, 54%, 62%)
CMYKcmyk(11%, 50%, 0%, 18%)
LABlab(57.5 48.5 -40.8)
LCHlch(57.5 63.4 320.0)
OKLCHoklch(0.653 0.169 318.0)
Decimal12217042
Display P3color(display-p3 0.729 0.416 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba6ad2 on white: 3.45:1
AA ✗ fail · AA-large · AAA
Aa
#ba6ad2 on black: 6.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5785D6
deuteranopia · #6F8DCF
tritanopia · #BA7994

Color scale — 50 to 950

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

#F9F4FB
#F3E9F6
#E6CEED
#D7A9E5
#ba6ad2
#AF53CB
#9E39BC
#842F9D
#69267D
#4D1F5B
#301339
Base = 400Lightest = 50 · #F9F4FBDarkest = 950 · #301339
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E9F6;
  --brand-200: #E6CEED;
  --brand-300: #D7A9E5;
  --brand-400: #ba6ad2;
  --brand-500: #AF53CB;
  --brand-600: #9E39BC;
  --brand-700: #842F9D;
  --brand-800: #69267D;
  --brand-900: #4D1F5B;
  --brand-950: #301339;
  --brand: #ba6ad2;
  --brand-ink: #000000;
}

Colors that work with #ba6ad2

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#E2C0EC
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#64A12B
Second voice, not a rival
Dark variant#521E62
Hover, pressed, headers
Light variant#F6EBF9
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 #ba6ad2

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#82D26A
Analogous left#866AD2
Analogous right#D26AB6
Split-complement 1#B6D26A
Split-complement 2#6AD286
Triadic 1#D2BA6A
Triadic 2#6AD2BA
Tetradic#D2866A

RGB percentages

Red72.9%
Green41.6%
Blue82.4%

CMYK percentages

Cyan11.4%
Magenta49.5%
Yellow0.0%
Key (black)17.6%

Color previews

#ba6ad2 text on a black background

contrast 6.08:1

Card sample

#ba6ad2 text on a white background

contrast 3.45:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba6ad2

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.

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

#ba6ad2, answered

What color is #ba6ad2?

#ba6ad2 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 4.7). It sits at 286° on the hue wheel with 54% saturation and 62% lightness, which reads as neutral.

What is the RGB value of #ba6ad2?

rgb(186, 106, 210) — 186 red, 106 green and 210 blue out of 255, or 72.9% / 41.6% / 82.4% by channel.

Is #ba6ad2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2540 and perceived brightness is 58%, so black text on it reaches 6.08:1.

Should I use black or white text on #ba6ad2?

Black. It scores 6.08:1 against #ba6ad2, versus 3.45:1 for white — AA at any size.

What is the complementary color of #ba6ad2?

#82D26A sits directly opposite on the wheel. Softer options are the split-complements #B6D26A and #6AD286, which give the same contrast with far less vibration.

What colors go well with #ba6ad2?

For interface work: #F9F4FA as the surface, #E2C0EC for borders, #884B9B for secondary text, #64A12B as an accent and #521E62 for hover and pressed states. For a palette, the analogous pair #866AD2 and #D26AB6 stays calm, while #82D26A is the loudest partner.

What is #ba6ad2 in CMYK for printing?

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

Is #ba6ad2 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 #D26AC4; nudged cooler, #9468D4.

Work with #ba6ad2 in the Color Lab