Skip to content

#ba5ccf

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

RGB
186, 92, 207
HSL
289°, 55%, 59%
CMYK
10, 56, 0, 19
Luminance
0.2260

At a glance

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

Hex
#ba5ccf
Hue
289°
violet
Saturation
55%
vivid
Lightness
59%
balanced
Brightness
81%
HSV value
Perceived
56%
weighted brightness
Luminance
0.2260
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.52:1
Closest name
Medium Orchid
ΔE2000 1.7
Where it sits
Hue289° of 360°
Saturation55%
Lightness59%
Temperature
Warm ← → Cool56% 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#ba5ccf
RGBrgb(186, 92, 207)
HSLhsl(289, 55%, 59%)
CMYKcmyk(10%, 56%, 0%, 19%)
LABlab(54.7 55.0 -43.5)
LCHlch(54.7 70.1 321.6)
OKLCHoklch(0.632 0.188 320.0)
Decimal12213455
Display P3color(display-p3 0.729 0.361 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba5ccf on white: 3.80:1
AA ✗ fail · AA-large · AAA
Aa
#ba5ccf on black: 5.52:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #457CD3
deuteranopia · #6586CC
tritanopia · #BB6D8D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba5ccf 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
#F4E9F6
#E8CEEE
#DAA8E5
#C87DD9
#ba5ccf
#A538BD
#892E9E
#6E257E
#511F5C
#321339
Base = 500Lightest = 50 · #F9F4FBDarkest = 950 · #321339
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F4E9F6;
  --brand-200: #E8CEEE;
  --brand-300: #DAA8E5;
  --brand-400: #C87DD9;
  --brand-500: #ba5ccf;
  --brand-600: #A538BD;
  --brand-700: #892E9E;
  --brand-800: #6E257E;
  --brand-900: #511F5C;
  --brand-950: #321339;
  --brand: #ba5ccf;
  --brand-ink: #000000;
}

Colors that work with #ba5ccf

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#E4C0EC
Hairlines and dividers
Muted text#8C4B9B
Captions on the surface
Accent#5EA12B
Second voice, not a rival
Dark variant#561D62
Hover, pressed, headers
Light variant#F7EBF9
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 #ba5ccf

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#71CF5C
Analogous left#805CCF
Analogous right#CF5CAB
Split-complement 1#ABCF5C
Split-complement 2#5CCF80
Triadic 1#CFBA5C
Triadic 2#5CCFBA
Tetradic#CF805C

RGB percentages

Red72.9%
Green36.1%
Blue81.2%

CMYK percentages

Cyan10.1%
Magenta55.6%
Yellow0.0%
Key (black)18.8%

Color previews

#ba5ccf text on a black background

contrast 5.52:1

Card sample

#ba5ccf text on a white background

contrast 3.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba5ccf

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.

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

#ba5ccf, answered

What color is #ba5ccf?

#ba5ccf is a balanced vivid violet, closest to Medium Orchid (ΔE2000 1.7). It sits at 289° on the hue wheel with 55% saturation and 59% lightness, which reads as neutral.

What is the RGB value of #ba5ccf?

rgb(186, 92, 207) — 186 red, 92 green and 207 blue out of 255, or 72.9% / 36.1% / 81.2% by channel.

Is #ba5ccf a light or a dark color?

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

Should I use black or white text on #ba5ccf?

Black. It scores 5.52:1 against #ba5ccf, versus 3.80:1 for white — AA at any size.

What is the complementary color of #ba5ccf?

#71CF5C sits directly opposite on the wheel. Softer options are the split-complements #ABCF5C and #5CCF80, which give the same contrast with far less vibration.

What colors go well with #ba5ccf?

For interface work: #F9F4FA as the surface, #E4C0EC for borders, #8C4B9B for secondary text, #5EA12B as an accent and #561D62 for hover and pressed states. For a palette, the analogous pair #805CCF and #CF5CAB stays calm, while #71CF5C is the loudest partner.

What is #ba5ccf in CMYK for printing?

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

Is #ba5ccf warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF5CBA; nudged cooler, #8F5AD1.

Work with #ba5ccf in the Color Lab