Skip to content

#ba52c4

a balanced, vivid magenta / pink · neutral · closest name: Medium Orchid

RGB
186, 82, 196
HSL
295°, 49%, 55%
CMYK
5, 58, 0, 23
Luminance
0.2046

At a glance

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

Hex
#ba52c4
Hue
295°
magenta / pink
Saturation
49%
vivid
Lightness
55%
balanced
Brightness
77%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2046
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.09:1
Closest name
Medium Orchid
ΔE2000 2.7
Where it sits
Hue295° of 360°
Saturation49%
Lightness55%
Temperature
Warm ← → Cool53% 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#ba52c4
RGBrgb(186, 82, 196)
HSLhsl(295, 49%, 55%)
CMYKcmyk(5%, 58%, 0%, 23%)
LABlab(52.4 57.6 -40.9)
LCHlch(52.4 70.6 324.6)
OKLCHoklch(0.614 0.193 324.1)
Decimal12210884
Display P3color(display-p3 0.729 0.322 0.769)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba52c4 on white: 4.12:1
AA ✗ fail · AA-large · AAA
Aa
#ba52c4 on black: 5.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4075C8
deuteranopia · #6481C1
tritanopia · #BD6283

Color scale — 50 to 950

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

#FAF4FA
#F5EAF6
#EAD0EC
#DEABE2
#CD82D4
#ba52c4
#AC3EB6
#8F3498
#732A7A
#542259
#341538
Base = 500Lightest = 50 · #FAF4FADarkest = 950 · #341538
:root {
  --brand-50: #FAF4FA;
  --brand-100: #F5EAF6;
  --brand-200: #EAD0EC;
  --brand-300: #DEABE2;
  --brand-400: #CD82D4;
  --brand-500: #ba52c4;
  --brand-600: #AC3EB6;
  --brand-700: #8F3498;
  --brand-800: #732A7A;
  --brand-900: #542259;
  --brand-950: #341538;
  --brand: #ba52c4;
  --brand-ink: #000000;
}

Colors that work with #ba52c4

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#FAF4FA
Tinted page background
Border#E7C2EA
Hairlines and dividers
Muted text#944B9B
Captions on the surface
Accent#549C30
Second voice, not a rival
Dark variant#5A205F
Hover, pressed, headers
Light variant#F7ECF9
Selected rows, tints
Dark surface#231424
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 #ba52c4

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#5CC452
Analogous left#8152C4
Analogous right#C45295
Split-complement 1#95C452
Split-complement 2#52C481
Triadic 1#C4BA52
Triadic 2#52C4BA
Tetradic#C48152

RGB percentages

Red72.9%
Green32.2%
Blue76.9%

CMYK percentages

Cyan5.1%
Magenta58.2%
Yellow0.0%
Key (black)23.1%

Color previews

#ba52c4 text on a black background

contrast 5.09:1

Card sample

#ba52c4 text on a white background

contrast 4.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba52c4

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.

#ba52c4 in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ba52c4, answered

What color is #ba52c4?

#ba52c4 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 2.7). It sits at 295° on the hue wheel with 49% saturation and 55% lightness, which reads as neutral.

What is the RGB value of #ba52c4?

rgb(186, 82, 196) — 186 red, 82 green and 196 blue out of 255, or 72.9% / 32.2% / 76.9% by channel.

Is #ba52c4 a light or a dark color?

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

Should I use black or white text on #ba52c4?

Black. It scores 5.09:1 against #ba52c4, versus 4.12:1 for white — AA at any size.

What is the complementary color of #ba52c4?

#5CC452 sits directly opposite on the wheel. Softer options are the split-complements #95C452 and #52C481, which give the same contrast with far less vibration.

What colors go well with #ba52c4?

For interface work: #FAF4FA as the surface, #E7C2EA for borders, #944B9B for secondary text, #549C30 as an accent and #5A205F for hover and pressed states. For a palette, the analogous pair #8152C4 and #C45295 stays calm, while #5CC452 is the loudest partner.

What is #ba52c4 in CMYK for printing?

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

Is #ba52c4 warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C452A4; nudged cooler, #9050C6.

Work with #ba52c4 in the Color Lab