Skip to content

#ba2fdf

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

RGB
186, 47, 223
HSL
287°, 73%, 53%
CMYK
17, 79, 0, 13
Luminance
0.1780

At a glance

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

Hex
#ba2fdf
Hue
287°
violet
Saturation
73%
vivid
Lightness
53%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1780
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.61:1
Closest name
Medium Orchid
ΔE2000 6.2
Where it sits
Hue287° of 360°
Saturation73%
Lightness53%
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#ba2fdf
RGBrgb(186, 47, 223)
HSLhsl(287, 73%, 53%)
CMYKcmyk(17%, 79%, 0%, 13%)
LABlab(49.3 75.7 -61.3)
LCHlch(49.3 97.4 321.0)
OKLCHoklch(0.596 0.257 317.8)
Decimal12201951
Display P3color(display-p3 0.729 0.184 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fdf on white: 4.61:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fdf on black: 4.56:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006DE4
deuteranopia · #3679DB
tritanopia · #B95888

Color scale — 50 to 950

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

#FAF3FC
#F5E7F8
#EAC8F3
#DF9EF0
#CF6DE9
#ba2fdf
#AE21D4
#911BB1
#74168D
#551466
#350C40
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #350C40
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F5E7F8;
  --brand-200: #EAC8F3;
  --brand-300: #DF9EF0;
  --brand-400: #CF6DE9;
  --brand-500: #ba2fdf;
  --brand-600: #AE21D4;
  --brand-700: #911BB1;
  --brand-800: #74168D;
  --brand-900: #551466;
  --brand-950: #350C40;
  --brand: #ba2fdf;
  --brand-ink: #ffffff;
}

Colors that work with #ba2fdf

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#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5FB517
Second voice, not a rival
Dark variant#5B116E
Hover, pressed, headers
Light variant#F8E9FC
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 #ba2fdf

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#54DF2F
Analogous left#622FDF
Analogous right#DF2FAC
Split-complement 1#ACDF2F
Split-complement 2#2FDF62
Triadic 1#DFBA2F
Triadic 2#2FDFBA
Tetradic#DF622F

RGB percentages

Red72.9%
Green18.4%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta78.9%
Yellow0.0%
Key (black)12.5%

Color previews

#ba2fdf text on a black background

contrast 4.56:1

Card sample

#ba2fdf text on a white background

contrast 4.61:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fdf

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.

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

#ba2fdf, answered

What color is #ba2fdf?

#ba2fdf is a balanced vivid violet, closest to Medium Orchid (ΔE2000 6.2). It sits at 287° on the hue wheel with 73% saturation and 53% lightness, which reads as neutral.

What is the RGB value of #ba2fdf?

rgb(186, 47, 223) — 186 red, 47 green and 223 blue out of 255, or 72.9% / 18.4% / 87.5% by channel.

Is #ba2fdf a light or a dark color?

It is a dark color. Relative luminance is 0.1780 and perceived brightness is 52%, so white text on it reaches 4.61:1.

Should I use black or white text on #ba2fdf?

White. It scores 4.61:1 against #ba2fdf, versus 4.56:1 for black — AA at any size.

What is the complementary color of #ba2fdf?

#54DF2F sits directly opposite on the wheel. Softer options are the split-complements #ACDF2F and #2FDF62, which give the same contrast with far less vibration.

What colors go well with #ba2fdf?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5FB517 as an accent and #5B116E for hover and pressed states. For a palette, the analogous pair #622FDF and #DF2FAC stays calm, while #54DF2F is the loudest partner.

What is #ba2fdf in CMYK for printing?

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

Is #ba2fdf 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 #DF2FC3; nudged cooler, #792CE1.

Work with #ba2fdf in the Color Lab