Skip to content

#ba07dc

a dark, electric magenta / pink · neutral · closest name: Dark Orchid

RGB
186, 7, 220
HSL
290°, 94%, 45%
CMYK
16, 97, 0, 14
Luminance
0.1576

At a glance

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

Hex
#ba07dc
Hue
290°
magenta / pink
Saturation
94%
electric
Lightness
45%
dark
Brightness
86%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1576
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
5.06:1
Closest name
Dark Orchid
ΔE2000 5.3
Where it sits
Hue290° of 360°
Saturation94%
Lightness45%
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#ba07dc
RGBrgb(186, 7, 220)
HSLhsl(290, 94%, 45%)
CMYKcmyk(16%, 97%, 0%, 14%)
LABlab(46.7 82.2 -63.8)
LCHlch(46.7 104.0 322.2)
OKLCHoklch(0.578 0.276 319.3)
Decimal12191708
Display P3color(display-p3 0.729 0.027 0.863)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba07dc on white: 5.06:1
AA ✓ pass · AA-large · AAA
Aa
#ba07dc on black: 4.15:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065E1
deuteranopia · #2673D8
tritanopia · #BA4A81

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba07dc 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
#F8E4FB
#F1C2FA
#EB92FC
#E15CFA
#D626F8
#ba07dc
#A706C6
#86059E
#610872
#3D0547
Base = 600Lightest = 50 · #FBF2FDDarkest = 950 · #3D0547
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F8E4FB;
  --brand-200: #F1C2FA;
  --brand-300: #EB92FC;
  --brand-400: #E15CFA;
  --brand-500: #D626F8;
  --brand-600: #ba07dc;
  --brand-700: #A706C6;
  --brand-800: #86059E;
  --brand-900: #610872;
  --brand-950: #3D0547;
  --brand: #ba07dc;
  --brand-ink: #ffffff;
}

Colors that work with #ba07dc

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#8E4B9B
Captions on the surface
Accent#54CA02
Second voice, not a rival
Dark variant#68047C
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 #ba07dc

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#29DC07
Analogous left#4F07DC
Analogous right#DC0794
Split-complement 1#94DC07
Split-complement 2#07DC4F
Triadic 1#DCBA07
Triadic 2#07DCBA
Tetradic#DC4F07

RGB percentages

Red72.9%
Green2.7%
Blue86.3%

CMYK percentages

Cyan15.5%
Magenta96.8%
Yellow0.0%
Key (black)13.7%

Color previews

#ba07dc text on a black background

contrast 4.15:1

Card sample

#ba07dc text on a white background

contrast 5.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba07dc

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.

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

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

#ba07dc, answered

What color is #ba07dc?

#ba07dc is a dark electric magenta / pink, closest to Dark Orchid (ΔE2000 5.3). It sits at 290° on the hue wheel with 94% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #ba07dc?

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

Is #ba07dc a light or a dark color?

It is a dark color. Relative luminance is 0.1576 and perceived brightness is 49%, so white text on it reaches 5.06:1.

Should I use black or white text on #ba07dc?

White. It scores 5.06:1 against #ba07dc, versus 4.15:1 for black — AA at any size.

What is the complementary color of #ba07dc?

#29DC07 sits directly opposite on the wheel. Softer options are the split-complements #94DC07 and #07DC4F, which give the same contrast with far less vibration.

What colors go well with #ba07dc?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8E4B9B for secondary text, #54CA02 as an accent and #68047C for hover and pressed states. For a palette, the analogous pair #4F07DC and #DC0794 stays calm, while #29DC07 is the loudest partner.

What is #ba07dc in CMYK for printing?

cmyk(16%, 97%, 0%, 14%). 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 #ba07dc 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 #DC07B0; nudged cooler, #6C05DE.

Work with #ba07dc in the Color Lab