Skip to content

#ba08df

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

RGB
186, 8, 223
HSL
290°, 93%, 45%
CMYK
17, 96, 0, 13
Luminance
0.1594

At a glance

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

Hex
#ba08df
Hue
290°
violet
Saturation
93%
electric
Lightness
45%
balanced
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1594
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.01:1
Closest name
Dark Orchid
ΔE2000 5.4
Where it sits
Hue290° of 360°
Saturation93%
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#ba08df
RGBrgb(186, 8, 223)
HSLhsl(290, 93%, 45%)
CMYKcmyk(17%, 96%, 0%, 13%)
LABlab(46.9 82.6 -65.1)
LCHlch(46.9 105.2 321.8)
OKLCHoklch(0.580 0.278 318.6)
Decimal12191967
Display P3color(display-p3 0.729 0.031 0.875)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba08df on white: 5.01:1
AA ✓ pass · AA-large · AAA
Aa
#ba08df on black: 4.19:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0065E4
deuteranopia · #2074DB
tritanopia · #B94C83

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba08df 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
#F0C2F9
#E993FB
#DE5DF9
#D326F7
#ba08df
#A407C5
#83069E
#600972
#3C0547
Base = 600Lightest = 50 · #FBF2FDDarkest = 950 · #3C0547
:root {
  --brand-50: #FBF2FD;
  --brand-100: #F7E4FB;
  --brand-200: #F0C2F9;
  --brand-300: #E993FB;
  --brand-400: #DE5DF9;
  --brand-500: #D326F7;
  --brand-600: #ba08df;
  --brand-700: #A407C5;
  --brand-800: #83069E;
  --brand-900: #600972;
  --brand-950: #3C0547;
  --brand: #ba08df;
  --brand-ink: #ffffff;
}

Colors that work with #ba08df

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#56C903
Second voice, not a rival
Dark variant#67047B
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 #ba08df

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#2DDF08
Analogous left#4F08DF
Analogous right#DF0898
Split-complement 1#98DF08
Split-complement 2#08DF4F
Triadic 1#DFBA08
Triadic 2#08DFBA
Tetradic#DF4F08

RGB percentages

Red72.9%
Green3.1%
Blue87.5%

CMYK percentages

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

Color previews

#ba08df text on a black background

contrast 4.19:1

Card sample

#ba08df text on a white background

contrast 5.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba08df

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.

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

#ba08df, answered

What color is #ba08df?

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

What is the RGB value of #ba08df?

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

Is #ba08df a light or a dark color?

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

Should I use black or white text on #ba08df?

White. It scores 5.01:1 against #ba08df, versus 4.19:1 for black — AA at any size.

What is the complementary color of #ba08df?

#2DDF08 sits directly opposite on the wheel. Softer options are the split-complements #98DF08 and #08DF4F, which give the same contrast with far less vibration.

What colors go well with #ba08df?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #56C903 as an accent and #67047B for hover and pressed states. For a palette, the analogous pair #4F08DF and #DF0898 stays calm, while #2DDF08 is the loudest partner.

What is #ba08df in CMYK for printing?

cmyk(17%, 96%, 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 #ba08df 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 #DF08B5; nudged cooler, #6B06E1.

Work with #ba08df in the Color Lab