Skip to content

#ba38d2

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

RGB
186, 56, 210
HSL
291°, 63%, 52%
CMYK
11, 73, 0, 18
Luminance
0.1792

At a glance

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

Hex
#ba38d2
Hue
291°
magenta / pink
Saturation
63%
vivid
Lightness
52%
balanced
Brightness
82%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1792
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.58:1
Closest name
Medium Orchid
ΔE2000 5.1
Where it sits
Hue291° of 360°
Saturation63%
Lightness52%
Temperature
Warm ← → Cool55% 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#ba38d2
RGBrgb(186, 56, 210)
HSLhsl(291, 63%, 52%)
CMYKcmyk(11%, 73%, 0%, 18%)
LABlab(49.4 70.6 -53.6)
LCHlch(49.4 88.6 322.8)
OKLCHoklch(0.595 0.238 320.9)
Decimal12204242
Display P3color(display-p3 0.729 0.220 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba38d2 on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ba38d2 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006CD6
deuteranopia · #497ACE
tritanopia · #BB5683

Color scale — 50 to 950

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

#FAF4FB
#F5E8F7
#EACBF0
#DFA4EA
#CF76E0
#ba38d2
#AF2DC8
#9226A6
#751E85
#561A61
#35103C
Base = 500Lightest = 50 · #FAF4FBDarkest = 950 · #35103C
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F5E8F7;
  --brand-200: #EACBF0;
  --brand-300: #DFA4EA;
  --brand-400: #CF76E0;
  --brand-500: #ba38d2;
  --brand-600: #AF2DC8;
  --brand-700: #9226A6;
  --brand-800: #751E85;
  --brand-900: #561A61;
  --brand-950: #35103C;
  --brand: #ba38d2;
  --brand-ink: #ffffff;
}

Colors that work with #ba38d2

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#E6C0ED
Hairlines and dividers
Muted text#8E4B9B
Captions on the surface
Accent#59AB21
Second voice, not a rival
Dark variant#5B1868
Hover, pressed, headers
Light variant#F8EAFA
Selected rows, tints
Dark surface#221424
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 #ba38d2

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links 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
  • 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#50D238
Analogous left#6D38D2
Analogous right#D2389D
Split-complement 1#9DD238
Split-complement 2#38D26D
Triadic 1#D2BA38
Triadic 2#38D2BA
Tetradic#D26D38

RGB percentages

Red72.9%
Green22.0%
Blue82.4%

CMYK percentages

Cyan11.4%
Magenta73.3%
Yellow0.0%
Key (black)17.6%

Color previews

#ba38d2 text on a black background

contrast 4.58:1

Card sample

#ba38d2 text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba38d2

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.

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

#ba38d2, answered

What color is #ba38d2?

#ba38d2 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 5.1). It sits at 291° on the hue wheel with 63% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #ba38d2?

rgb(186, 56, 210) — 186 red, 56 green and 210 blue out of 255, or 72.9% / 22% / 82.4% by channel.

Is #ba38d2 a light or a dark color?

It is a dark color. Relative luminance is 0.1792 and perceived brightness is 51%, so white text on it reaches 4.58:1.

Should I use black or white text on #ba38d2?

White. It scores 4.58:1 against #ba38d2, versus 4.58:1 for black — AA at any size.

What is the complementary color of #ba38d2?

#50D238 sits directly opposite on the wheel. Softer options are the split-complements #9DD238 and #38D26D, which give the same contrast with far less vibration.

What colors go well with #ba38d2?

For interface work: #F9F4FA as the surface, #E6C0ED for borders, #8E4B9B for secondary text, #59AB21 as an accent and #5B1868 for hover and pressed states. For a palette, the analogous pair #6D38D2 and #D2389D stays calm, while #50D238 is the loudest partner.

What is #ba38d2 in CMYK for printing?

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

Is #ba38d2 warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D238B2; nudged cooler, #8136D4.

Work with #ba38d2 in the Color Lab