Skip to content

#ba2fd6

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

RGB
186, 47, 214
HSL
290°, 67%, 51%
CMYK
13, 78, 0, 16
Luminance
0.1733

At a glance

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

Hex
#ba2fd6
Hue
290°
violet
Saturation
67%
vivid
Lightness
51%
balanced
Brightness
84%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1733
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.70:1
Closest name
Dark Orchid
ΔE2000 6.2
Where it sits
Hue290° of 360°
Saturation67%
Lightness51%
Temperature
Warm ← → Cool56% 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#ba2fd6
RGBrgb(186, 47, 214)
HSLhsl(290, 67%, 51%)
CMYKcmyk(13%, 78%, 0%, 16%)
LABlab(48.7 74.1 -57.1)
LCHlch(48.7 93.5 322.4)
OKLCHoklch(0.591 0.250 320.1)
Decimal12201942
Display P3color(display-p3 0.729 0.184 0.839)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2fd6 on white: 4.70:1
AA ✓ pass · AA-large · AAA
Aa
#ba2fd6 on black: 4.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #006ADA
deuteranopia · #4078D2
tritanopia · #BB5383

Color scale — 50 to 950

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

#FAF3FB
#F5E8F8
#EBCAF1
#E0A1ED
#D072E3
#C144DA
#ba2fd6
#9322AA
#761B88
#561763
#360F3E
Base = 600Lightest = 50 · #FAF3FBDarkest = 950 · #360F3E
:root {
  --brand-50: #FAF3FB;
  --brand-100: #F5E8F8;
  --brand-200: #EBCAF1;
  --brand-300: #E0A1ED;
  --brand-400: #D072E3;
  --brand-500: #C144DA;
  --brand-600: #ba2fd6;
  --brand-700: #9322AA;
  --brand-800: #761B88;
  --brand-900: #561763;
  --brand-950: #360F3E;
  --brand: #ba2fd6;
  --brand-ink: #ffffff;
}

Colors that work with #ba2fd6

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#E5C0ED
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#5AAF1D
Second voice, not a rival
Dark variant#5C156B
Hover, pressed, headers
Light variant#F8EAFB
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 #ba2fd6

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

Works well for
  • Body text and links on white
  • 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#4BD62F
Analogous left#662FD6
Analogous right#D62F9F
Split-complement 1#9FD62F
Split-complement 2#2FD666
Triadic 1#D6BA2F
Triadic 2#2FD6BA
Tetradic#D6662F

RGB percentages

Red72.9%
Green18.4%
Blue83.9%

CMYK percentages

Cyan13.1%
Magenta78.0%
Yellow0.0%
Key (black)16.1%

Color previews

#ba2fd6 text on a black background

contrast 4.47:1

Card sample

#ba2fd6 text on a white background

contrast 4.70:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2fd6

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.

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

#ba2fd6, answered

What color is #ba2fd6?

#ba2fd6 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 6.2). It sits at 290° on the hue wheel with 67% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #ba2fd6?

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

Is #ba2fd6 a light or a dark color?

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

Should I use black or white text on #ba2fd6?

White. It scores 4.70:1 against #ba2fd6, versus 4.47:1 for black — AA at any size.

What is the complementary color of #ba2fd6?

#4BD62F sits directly opposite on the wheel. Softer options are the split-complements #9FD62F and #2FD666, which give the same contrast with far less vibration.

What colors go well with #ba2fd6?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #5AAF1D as an accent and #5C156B for hover and pressed states. For a palette, the analogous pair #662FD6 and #D62F9F stays calm, while #4BD62F is the loudest partner.

What is #ba2fd6 in CMYK for printing?

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

Is #ba2fd6 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D62FB5; nudged cooler, #7D2DD9.

Work with #ba2fd6 in the Color Lab