Skip to content

#ba0cf8

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

RGB
186, 12, 248
HSL
284°, 94%, 51%
CMYK
25, 95, 0, 3
Luminance
0.1748

At a glance

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

Hex
#ba0cf8
Hue
284°
violet
Saturation
94%
electric
Lightness
51%
balanced
Brightness
97%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1748
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.67:1
Closest name
Dark Orchid
ΔE2000 7.1
Where it sits
Hue284° of 360°
Saturation94%
Lightness51%
Temperature
Warm ← → Cool59% 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#ba0cf8
RGBrgb(186, 12, 248)
HSLhsl(284, 94%, 51%)
CMYKcmyk(25%, 95%, 0%, 3%)
LABlab(48.9 86.6 -76.0)
LCHlch(48.9 115.2 318.7)
OKLCHoklch(0.599 0.294 312.9)
Decimal12193016
Display P3color(display-p3 0.729 0.047 0.973)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0cf8 on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#ba0cf8 on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006DFD
deuteranopia · #0077F4
tritanopia · #B35B93

Color scale — 50 to 950

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

#FAF2FD
#F5E4FB
#EBC2FA
#E092FC
#D05BFA
#C125F9
#ba0cf8
#9406C6
#76059F
#560872
#360547
Base = 600Lightest = 50 · #FAF2FDDarkest = 950 · #360547
:root {
  --brand-50: #FAF2FD;
  --brand-100: #F5E4FB;
  --brand-200: #EBC2FA;
  --brand-300: #E092FC;
  --brand-400: #D05BFA;
  --brand-500: #C125F9;
  --brand-600: #ba0cf8;
  --brand-700: #9406C6;
  --brand-800: #76059F;
  --brand-900: #560872;
  --brand-950: #360547;
  --brand: #ba0cf8;
  --brand-ink: #ffffff;
}

Colors that work with #ba0cf8

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#E1C0ED
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#68CA02
Second voice, not a rival
Dark variant#5C047C
Hover, pressed, headers
Light variant#F8E6FE
Selected rows, tints
Dark surface#201424
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 #ba0cf8

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#4AF80C
Analogous left#440CF8
Analogous right#F80CC0
Split-complement 1#C0F80C
Split-complement 2#0CF844
Triadic 1#F8BA0C
Triadic 2#0CF8BA
Tetradic#F8440C

RGB percentages

Red72.9%
Green4.7%
Blue97.3%

CMYK percentages

Cyan25.0%
Magenta95.2%
Yellow0.0%
Key (black)2.7%

Color previews

#ba0cf8 text on a black background

contrast 4.50:1

Card sample

#ba0cf8 text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0cf8

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.

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

#ba0cf8, answered

What color is #ba0cf8?

#ba0cf8 is a balanced electric violet, closest to Dark Orchid (ΔE2000 7.1). It sits at 284° on the hue wheel with 94% saturation and 51% lightness, which reads as cool.

What is the RGB value of #ba0cf8?

rgb(186, 12, 248) — 186 red, 12 green and 248 blue out of 255, or 72.9% / 4.7% / 97.3% by channel.

Is #ba0cf8 a light or a dark color?

It is a dark color. Relative luminance is 0.1748 and perceived brightness is 52%, so white text on it reaches 4.67:1.

Should I use black or white text on #ba0cf8?

White. It scores 4.67:1 against #ba0cf8, versus 4.50:1 for black — AA at any size.

What is the complementary color of #ba0cf8?

#4AF80C sits directly opposite on the wheel. Softer options are the split-complements #C0F80C and #0CF844, which give the same contrast with far less vibration.

What colors go well with #ba0cf8?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #864B9B for secondary text, #68CA02 as an accent and #5C047C for hover and pressed states. For a palette, the analogous pair #440CF8 and #F80CC0 stays calm, while #4AF80C is the loudest partner.

What is #ba0cf8 in CMYK for printing?

cmyk(25%, 95%, 0%, 3%). 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 #ba0cf8 warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F80CE0; nudged cooler, #630AFB.

Work with #ba0cf8 in the Color Lab