Skip to content

#ba07df

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

RGB
186, 7, 223
HSL
290°, 94%, 45%
CMYK
17, 97, 0, 13
Luminance
0.1592

At a glance

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

Hex
#ba07df
Hue
290°
violet
Saturation
94%
electric
Lightness
45%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1592
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.02:1
Closest name
Dark Orchid
ΔE2000 5.4
Where it sits
Hue290° of 360°
Saturation94%
Lightness45%
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#ba07df
RGBrgb(186, 7, 223)
HSLhsl(290, 94%, 45%)
CMYKcmyk(17%, 97%, 0%, 13%)
LABlab(46.9 82.7 -65.1)
LCHlch(46.9 105.3 321.8)
OKLCHoklch(0.580 0.278 318.6)
Decimal12191711
Display P3color(display-p3 0.729 0.027 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba07df on white: 5.02:1
AA ✓ pass · AA-large · AAA
Aa
#ba07df on black: 4.18:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065E4
deuteranopia · #1F74DB
tritanopia · #B94C83

Color scale — 50 to 950

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

#FBF2FD
#F7E4FB
#F0C2FA
#E992FC
#DF5CFA
#D425F8
#ba07df
#A506C6
#84059E
#600872
#3C0547
Base = 600Lightest = 50 · #FBF2FDDarkest = 950 · #3C0547
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F7E4FB;
  --brand-200: #F0C2FA;
  --brand-300: #E992FC;
  --brand-400: #DF5CFA;
  --brand-500: #D425F8;
  --brand-600: #ba07df;
  --brand-700: #A506C6;
  --brand-800: #84059E;
  --brand-900: #600872;
  --brand-950: #3C0547;
  --brand: #ba07df;
  --brand-ink: #ffffff;
}

Colors that work with #ba07df

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#56CA02
Second voice, not a rival
Dark variant#67047C
Hover, pressed, headers
Light variant#FAE6FE
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 #ba07df

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#2CDF07
Analogous left#4E07DF
Analogous right#DF0798
Split-complement 1#98DF07
Split-complement 2#07DF4E
Triadic 1#DFBA07
Triadic 2#07DFBA
Tetradic#DF4E07

RGB percentages

Red72.9%
Green2.7%
Blue87.5%

CMYK percentages

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

Color previews

#ba07df text on a black background

contrast 4.18:1

Card sample

#ba07df text on a white background

contrast 5.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba07df

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.

#ba07df 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

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

#ba07df, answered

What color is #ba07df?

#ba07df is a balanced electric violet, closest to Dark Orchid (ΔE2000 5.4). It sits at 290° on the hue wheel with 94% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #ba07df?

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

Is #ba07df a light or a dark color?

It is a dark color. Relative luminance is 0.1592 and perceived brightness is 50%, so white text on it reaches 5.02:1.

Should I use black or white text on #ba07df?

White. It scores 5.02:1 against #ba07df, versus 4.18:1 for black — AA at any size.

What is the complementary color of #ba07df?

#2CDF07 sits directly opposite on the wheel. Softer options are the split-complements #98DF07 and #07DF4E, which give the same contrast with far less vibration.

What colors go well with #ba07df?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #56CA02 as an accent and #67047C for hover and pressed states. For a palette, the analogous pair #4E07DF and #DF0798 stays calm, while #2CDF07 is the loudest partner.

What is #ba07df in CMYK for printing?

cmyk(17%, 97%, 0%, 13%). 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 #ba07df 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 #DF07B5; nudged cooler, #6B05E1.

Work with #ba07df in the Color Lab