Skip to content

#ba6fd3

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

RGB
186, 111, 211
HSL
285°, 53%, 63%
CMYK
12, 47, 0, 17
Luminance
0.2651

At a glance

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

Hex
#ba6fd3
Hue
285°
violet
Saturation
53%
vivid
Lightness
63%
balanced
Brightness
83%
HSV value
Perceived
59%
weighted brightness
Luminance
0.2651
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.30:1
Closest name
Medium Orchid
ΔE2000 5.9
Where it sits
Hue285° of 360°
Saturation53%
Lightness63%
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#ba6fd3
RGBrgb(186, 111, 211)
HSLhsl(285, 53%, 63%)
CMYKcmyk(12%, 47%, 0%, 17%)
LABlab(58.5 46.1 -39.7)
LCHlch(58.5 60.9 319.3)
OKLCHoklch(0.661 0.162 317.2)
Decimal12218323
Display P3color(display-p3 0.729 0.435 0.827)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba6fd3 on white: 3.33:1
AA ✗ fail · AA-large · AAA
Aa
#ba6fd3 on black: 6.30:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5D88D6
deuteranopia · #728FD0
tritanopia · #B97D97

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba6fd3 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
#D6A9E5
#ba6fd3
#AD53CA
#9B39BC
#81309C
#67267D
#4C1F5B
#301439
Base = 400Lightest = 50 · #F9F4FBDarkest = 950 · #301439
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E9F6;
  --brand-200: #E6CEED;
  --brand-300: #D6A9E5;
  --brand-400: #ba6fd3;
  --brand-500: #AD53CA;
  --brand-600: #9B39BC;
  --brand-700: #81309C;
  --brand-800: #67267D;
  --brand-900: #4C1F5B;
  --brand-950: #301439;
  --brand: #ba6fd3;
  --brand-ink: #000000;
}

Colors that work with #ba6fd3

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#E1C0EC
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#66A12B
Second voice, not a rival
Dark variant#511E62
Hover, pressed, headers
Light variant#F6EBF9
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 #ba6fd3

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#88D36F
Analogous left#886FD3
Analogous right#D36FBA
Split-complement 1#BAD36F
Split-complement 2#6FD388
Triadic 1#D3BA6F
Triadic 2#6FD3BA
Tetradic#D3886F

RGB percentages

Red72.9%
Green43.5%
Blue82.7%

CMYK percentages

Cyan11.8%
Magenta47.4%
Yellow0.0%
Key (black)17.3%

Color previews

#ba6fd3 text on a black background

contrast 6.30:1

Card sample

#ba6fd3 text on a white background

contrast 3.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba6fd3

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.

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

#ba6fd3, answered

What color is #ba6fd3?

#ba6fd3 is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.9). It sits at 285° on the hue wheel with 53% saturation and 63% lightness, which reads as cool.

What is the RGB value of #ba6fd3?

rgb(186, 111, 211) — 186 red, 111 green and 211 blue out of 255, or 72.9% / 43.5% / 82.7% by channel.

Is #ba6fd3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2651 and perceived brightness is 59%, so black text on it reaches 6.30:1.

Should I use black or white text on #ba6fd3?

Black. It scores 6.30:1 against #ba6fd3, versus 3.33:1 for white — AA at any size.

What is the complementary color of #ba6fd3?

#88D36F sits directly opposite on the wheel. Softer options are the split-complements #BAD36F and #6FD388, which give the same contrast with far less vibration.

What colors go well with #ba6fd3?

For interface work: #F9F4FA as the surface, #E1C0EC for borders, #874B9B for secondary text, #66A12B as an accent and #511E62 for hover and pressed states. For a palette, the analogous pair #886FD3 and #D36FBA stays calm, while #88D36F is the loudest partner.

What is #ba6fd3 in CMYK for printing?

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

Is #ba6fd3 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 #D36FC7; nudged cooler, #956DD5.

Work with #ba6fd3 in the Color Lab