Skip to content

#ba5fd8

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

RGB
186, 95, 216
HSL
285°, 61%, 61%
CMYK
14, 56, 0, 15
Luminance
0.2358

At a glance

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

Hex
#ba5fd8
Hue
285°
violet
Saturation
61%
vivid
Lightness
61%
balanced
Brightness
85%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2358
WCAG relative
Temperature
Cool
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.72:1
Closest name
Medium Orchid
ΔE2000 2.3
Where it sits
Hue285° of 360°
Saturation61%
Lightness61%
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#ba5fd8
RGBrgb(186, 95, 216)
HSLhsl(285, 61%, 61%)
CMYKcmyk(14%, 56%, 0%, 15%)
LABlab(55.7 55.3 -47.0)
LCHlch(55.7 72.6 319.6)
OKLCHoklch(0.641 0.193 317.1)
Decimal12214232
Display P3color(display-p3 0.729 0.373 0.847)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba5fd8 on white: 3.67:1
AA ✗ fail · AA-large · AAA
Aa
#ba5fd8 on black: 5.72:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4280DC
deuteranopia · #6288D5
tritanopia · #B97293

Color scale — 50 to 950

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

#F9F4FB
#F3E8F7
#E7CCF0
#D8A5E9
#C578DE
#ba5fd8
#A030C5
#8528A4
#6B2083
#4E1B5F
#31113C
Base = 500Lightest = 50 · #F9F4FBDarkest = 950 · #31113C
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F3E8F7;
  --brand-200: #E7CCF0;
  --brand-300: #D8A5E9;
  --brand-400: #C578DE;
  --brand-500: #ba5fd8;
  --brand-600: #A030C5;
  --brand-700: #8528A4;
  --brand-800: #6B2083;
  --brand-900: #4E1B5F;
  --brand-950: #31113C;
  --brand: #ba5fd8;
  --brand-ink: #000000;
}

Colors that work with #ba5fd8

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#E1C0ED
Hairlines and dividers
Muted text#874B9B
Captions on the surface
Accent#66A824
Second voice, not a rival
Dark variant#531967
Hover, pressed, headers
Light variant#F6EAFA
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 #ba5fd8

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#7DD85F
Analogous left#7E5FD8
Analogous right#D85FBA
Split-complement 1#BAD85F
Split-complement 2#5FD87E
Triadic 1#D8BA5F
Triadic 2#5FD8BA
Tetradic#D87E5F

RGB percentages

Red72.9%
Green37.3%
Blue84.7%

CMYK percentages

Cyan13.9%
Magenta56.0%
Yellow0.0%
Key (black)15.3%

Color previews

#ba5fd8 text on a black background

contrast 5.72:1

Card sample

#ba5fd8 text on a white background

contrast 3.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba5fd8

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.

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

#ba5fd8, answered

What color is #ba5fd8?

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

What is the RGB value of #ba5fd8?

rgb(186, 95, 216) — 186 red, 95 green and 216 blue out of 255, or 72.9% / 37.3% / 84.7% by channel.

Is #ba5fd8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2358 and perceived brightness is 57%, so black text on it reaches 5.72:1.

Should I use black or white text on #ba5fd8?

Black. It scores 5.72:1 against #ba5fd8, versus 3.67:1 for white — AA at any size.

What is the complementary color of #ba5fd8?

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

What colors go well with #ba5fd8?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #874B9B for secondary text, #66A824 as an accent and #531967 for hover and pressed states. For a palette, the analogous pair #7E5FD8 and #D85FBA stays calm, while #7DD85F is the loudest partner.

What is #ba5fd8 in CMYK for printing?

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

Is #ba5fd8 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 #D85FCA; nudged cooler, #8D5DDA.

Work with #ba5fd8 in the Color Lab