Skip to content

#ba54d4

a balanced, vivid violet · neutral · “Medium Orchid”

RGB
186, 84, 212
HSL
288°, 60%, 58%
CMYK
12, 60, 0, 17
Luminance
0.2153

At a glance

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

Hex
#ba54d4
Hue
288°
violet
Saturation
60%
vivid
Lightness
58%
balanced
Brightness
83%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2153
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
5.31:1
Closest name
Medium Orchid
ΔE2000 0.3
Where it sits
Hue288° of 360°
Saturation60%
Lightness58%
Temperature
Warm ← → Cool57% 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#ba54d4
RGBrgb(186, 84, 212)
HSLhsl(288, 60%, 58%)
CMYKcmyk(12%, 60%, 0%, 17%)
LABlab(53.5 59.7 -48.1)
LCHlch(53.5 76.7 321.1)
OKLCHoklch(0.625 0.205 319.0)
Decimal12211412
Display P3color(display-p3 0.729 0.329 0.831)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba54d4 on white: 3.96:1
AA ✗ fail · AA-large · AAA
Aa
#ba54d4 on black: 5.31:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3379D8
deuteranopia · #5C83D1
tritanopia · #BA698C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba54d4 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
#F4E9F7
#E8CCEF
#DBA5E8
#C979DD
#ba54d4
#A631C4
#8A29A3
#6F2182
#511C5F
#33113B
Base = 500Lightest = 50 · #F9F4FBDarkest = 950 · #33113B
:root {
  --brand-50: #F9F4FB;
  --brand-100: #F4E9F7;
  --brand-200: #E8CCEF;
  --brand-300: #DBA5E8;
  --brand-400: #C979DD;
  --brand-500: #ba54d4;
  --brand-600: #A631C4;
  --brand-700: #8A29A3;
  --brand-800: #6F2182;
  --brand-900: #511C5F;
  --brand-950: #33113B;
  --brand: #ba54d4;
  --brand-ink: #000000;
}

Colors that work with #ba54d4

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#E4C0ED
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#60A725
Second voice, not a rival
Dark variant#561A66
Hover, pressed, headers
Light variant#F7EBFA
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 #ba54d4

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#6ED454
Analogous left#7A54D4
Analogous right#D454AE
Split-complement 1#AED454
Split-complement 2#54D47A
Triadic 1#D4BA54
Triadic 2#54D4BA
Tetradic#D47A54

RGB percentages

Red72.9%
Green32.9%
Blue83.1%

CMYK percentages

Cyan12.3%
Magenta60.4%
Yellow0.0%
Key (black)16.9%

Color previews

#ba54d4 text on a black background

contrast 5.31:1

Card sample

#ba54d4 text on a white background

contrast 3.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba54d4

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.

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

#ba54d4, answered

What color is #ba54d4?

#ba54d4 is a balanced vivid violet — the CSS keyword Medium Orchid. It sits at 288° on the hue wheel with 60% saturation and 58% lightness, which reads as neutral.

What is the RGB value of #ba54d4?

rgb(186, 84, 212) — 186 red, 84 green and 212 blue out of 255, or 72.9% / 32.9% / 83.1% by channel.

Is #ba54d4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2153 and perceived brightness is 55%, so black text on it reaches 5.31:1.

Should I use black or white text on #ba54d4?

Black. It scores 5.31:1 against #ba54d4, versus 3.96:1 for white — AA at any size.

What is the complementary color of #ba54d4?

#6ED454 sits directly opposite on the wheel. Softer options are the split-complements #AED454 and #54D47A, which give the same contrast with far less vibration.

What colors go well with #ba54d4?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8B4B9B for secondary text, #60A725 as an accent and #561A66 for hover and pressed states. For a palette, the analogous pair #7A54D4 and #D454AE stays calm, while #6ED454 is the loudest partner.

What is #ba54d4 in CMYK for printing?

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

Is #ba54d4 warm or cool?

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

Work with #ba54d4 in the Color Lab