Skip to content

#ba71f3

a light, electric violet · cool · closest name: Medium Purple

RGB
186, 113, 243
HSL
274°, 84%, 70%
CMYK
24, 54, 0, 5
Luminance
0.2872

At a glance

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

Hex
#ba71f3
Hue
274°
violet
Saturation
84%
electric
Lightness
70%
light
Brightness
95%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2872
WCAG relative
Temperature
Cool
65/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.74:1
Closest name
Medium Purple
ΔE2000 7.6
Where it sits
Hue274° of 360°
Saturation84%
Lightness70%
Temperature
Warm ← → Cool65% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ba71f3
RGBrgb(186, 113, 243)
HSLhsl(274, 84%, 70%)
CMYKcmyk(24%, 54%, 0%, 5%)
LABlab(60.5 51.9 -54.4)
LCHlch(60.5 75.2 313.7)
OKLCHoklch(0.682 0.194 308.0)
Decimal12218867
Display P3color(display-p3 0.729 0.443 0.953)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba71f3 on white: 3.11:1
AA ✗ fail · AA-large · AAA
Aa
#ba71f3 on black: 6.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #488FF7
deuteranopia · #6093F0
tritanopia · #B288A7

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba71f3 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F8F2FC
#F1E6FA
#E1C5F7
#CD98F6
#ba71f3
#9A30ED
#8713E2
#7110BC
#5A0D96
#430E6D
#2A0944
Base = 400Lightest = 50 · #F8F2FCDarkest = 950 · #2A0944
:root {
  --brand-50: #F8F2FC;
  --brand-100: #F1E6FA;
  --brand-200: #E1C5F7;
  --brand-300: #CD98F6;
  --brand-400: #ba71f3;
  --brand-500: #9A30ED;
  --brand-600: #8713E2;
  --brand-700: #7110BC;
  --brand-800: #5A0D96;
  --brand-900: #430E6D;
  --brand-950: #2A0944;
  --brand: #ba71f3;
  --brand-ink: #000000;
}

Colors that work with #ba71f3

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#F8F4FA
Tinted page background
Border#D9C0ED
Hairlines and dividers
Muted text#784B9B
Captions on the surface
Accent#89C00C
Second voice, not a rival
Dark variant#460A76
Hover, pressed, headers
Light variant#F4E7FD
Selected rows, tints
Dark surface#1D1424
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 #ba71f3

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#AAF371
Analogous left#7971F3
Analogous right#F371EB
Split-complement 1#EBF371
Split-complement 2#71F379
Triadic 1#F3BA71
Triadic 2#71F3BA
Tetradic#F37971

RGB percentages

Red72.9%
Green44.3%
Blue95.3%

CMYK percentages

Cyan23.5%
Magenta53.5%
Yellow0.0%
Key (black)4.7%

Color previews

#ba71f3 text on a black background

contrast 6.74:1

Card sample

#ba71f3 text on a white background

contrast 3.11:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba71f3

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.

#ba71f3 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
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba71f3, answered

What color is #ba71f3?

#ba71f3 is a light electric violet, closest to Medium Purple (ΔE2000 7.6). It sits at 274° on the hue wheel with 84% saturation and 70% lightness, which reads as cool.

What is the RGB value of #ba71f3?

rgb(186, 113, 243) — 186 red, 113 green and 243 blue out of 255, or 72.9% / 44.3% / 95.3% by channel.

Is #ba71f3 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2872 and perceived brightness is 61%, so black text on it reaches 6.74:1.

Should I use black or white text on #ba71f3?

Black. It scores 6.74:1 against #ba71f3, versus 3.11:1 for white — AA at any size.

What is the complementary color of #ba71f3?

#AAF371 sits directly opposite on the wheel. Softer options are the split-complements #EBF371 and #71F379, which give the same contrast with far less vibration.

What colors go well with #ba71f3?

For interface work: #F8F4FA as the surface, #D9C0ED for borders, #784B9B for secondary text, #89C00C as an accent and #460A76 for hover and pressed states. For a palette, the analogous pair #7971F3 and #F371EB stays calm, while #AAF371 is the loudest partner.

What is #ba71f3 in CMYK for printing?

cmyk(24%, 54%, 0%, 5%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ba71f3 warm or cool?

Cool — it scores 65 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EA71F3; nudged cooler, #896FF5.

Work with #ba71f3 in the Color Lab