Skip to content

#ba4cdc

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

RGB
186, 76, 220
HSL
286°, 67%, 58%
CMYK
16, 66, 0, 14
Luminance
0.2078

At a glance

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

Hex
#ba4cdc
Hue
286°
violet
Saturation
67%
vivid
Lightness
58%
balanced
Brightness
86%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2078
WCAG relative
Temperature
Neutral
58/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.16:1
Closest name
Medium Orchid
ΔE2000 2.2
Where it sits
Hue286° of 360°
Saturation67%
Lightness58%
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#ba4cdc
RGBrgb(186, 76, 220)
HSLhsl(286, 67%, 58%)
CMYKcmyk(16%, 66%, 0%, 14%)
LABlab(52.7 64.8 -54.0)
LCHlch(52.7 84.3 320.2)
OKLCHoklch(0.620 0.223 317.2)
Decimal12209372
Display P3color(display-p3 0.729 0.298 0.863)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4cdc on white: 4.07:1
AA ✗ fail · AA-large · AAA
Aa
#ba4cdc on black: 5.16:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0E77E0
deuteranopia · #5081D9
tritanopia · #B9678E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba4cdc 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
#F4E8F8
#E8CAF1
#DBA1ED
#C972E3
#ba4cdc
#A628CD
#8A21AB
#6F1B89
#511763
#330F3E
Base = 500Lightest = 50 · #F9F3FBDarkest = 950 · #330F3E
:root {
  --brand-50: #F9F3FB;
  --brand-100: #F4E8F8;
  --brand-200: #E8CAF1;
  --brand-300: #DBA1ED;
  --brand-400: #C972E3;
  --brand-500: #ba4cdc;
  --brand-600: #A628CD;
  --brand-700: #8A21AB;
  --brand-800: #6F1B89;
  --brand-900: #511763;
  --brand-950: #330F3E;
  --brand: #ba4cdc;
  --brand-ink: #000000;
}

Colors that work with #ba4cdc

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#E2C0ED
Hairlines and dividers
Muted text#884B9B
Captions on the surface
Accent#64AE1E
Second voice, not a rival
Dark variant#56156B
Hover, pressed, headers
Light variant#F7EAFB
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 #ba4cdc

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#6EDC4C
Analogous left#724CDC
Analogous right#DC4CB6
Split-complement 1#B6DC4C
Split-complement 2#4CDC72
Triadic 1#DCBA4C
Triadic 2#4CDCBA
Tetradic#DC724C

RGB percentages

Red72.9%
Green29.8%
Blue86.3%

CMYK percentages

Cyan15.5%
Magenta65.5%
Yellow0.0%
Key (black)13.7%

Color previews

#ba4cdc text on a black background

contrast 5.16:1

Card sample

#ba4cdc text on a white background

contrast 4.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4cdc

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.

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

#ba4cdc, answered

What color is #ba4cdc?

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

What is the RGB value of #ba4cdc?

rgb(186, 76, 220) — 186 red, 76 green and 220 blue out of 255, or 72.9% / 29.8% / 86.3% by channel.

Is #ba4cdc a light or a dark color?

It is a mid-tone. Relative luminance is 0.2078 and perceived brightness is 54%, so black text on it reaches 5.16:1.

Should I use black or white text on #ba4cdc?

Black. It scores 5.16:1 against #ba4cdc, versus 4.07:1 for white — AA at any size.

What is the complementary color of #ba4cdc?

#6EDC4C sits directly opposite on the wheel. Softer options are the split-complements #B6DC4C and #4CDC72, which give the same contrast with far less vibration.

What colors go well with #ba4cdc?

For interface work: #F9F4FA as the surface, #E2C0ED for borders, #884B9B for secondary text, #64AE1E as an accent and #56156B for hover and pressed states. For a palette, the analogous pair #724CDC and #DC4CB6 stays calm, while #6EDC4C is the loudest partner.

What is #ba4cdc in CMYK for printing?

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

Is #ba4cdc 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 #DC4CC9; nudged cooler, #854ADE.

Work with #ba4cdc in the Color Lab