Skip to content

#ba3ce8

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

RGB
186, 60, 232
HSL
284°, 79%, 57%
CMYK
20, 74, 0, 9
Luminance
0.1950

At a glance

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

Hex
#ba3ce8
Hue
284°
violet
Saturation
79%
electric
Lightness
57%
balanced
Brightness
91%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1950
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.90:1
Closest name
Medium Orchid
ΔE2000 5.1
Where it sits
Hue284° of 360°
Saturation79%
Lightness57%
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#ba3ce8
RGBrgb(186, 60, 232)
HSLhsl(284, 79%, 57%)
CMYKcmyk(20%, 74%, 0%, 9%)
LABlab(51.3 73.3 -63.1)
LCHlch(51.3 96.7 319.3)
OKLCHoklch(0.613 0.252 315.1)
Decimal12205288
Display P3color(display-p3 0.729 0.235 0.910)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3ce8 on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba3ce8 on black: 4.90:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0073ED
deuteranopia · #357DE4
tritanopia · #B66290

Color scale — 50 to 950

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

#FAF3FC
#F4E6F9
#E9C7F5
#DC9BF3
#CA68ED
#ba3ce8
#A71ADB
#8C16B6
#701192
#52116A
#330A42
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #330A42
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F4E6F9;
  --brand-200: #E9C7F5;
  --brand-300: #DC9BF3;
  --brand-400: #CA68ED;
  --brand-500: #ba3ce8;
  --brand-600: #A71ADB;
  --brand-700: #8C16B6;
  --brand-800: #701192;
  --brand-900: #52116A;
  --brand-950: #330A42;
  --brand: #ba3ce8;
  --brand-ink: #000000;
}

Colors that work with #ba3ce8

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F9F4FA
Tinted page background
Border#E1C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#69BA12
Second voice, not a rival
Dark variant#570D72
Hover, pressed, headers
Light variant#F7E8FC
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 #ba3ce8

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#6AE83C
Analogous left#643CE8
Analogous right#E83CC0
Split-complement 1#C0E83C
Split-complement 2#3CE864
Triadic 1#E8BA3C
Triadic 2#3CE8BA
Tetradic#E8643C

RGB percentages

Red72.9%
Green23.5%
Blue91.0%

CMYK percentages

Cyan19.8%
Magenta74.1%
Yellow0.0%
Key (black)9.0%

Color previews

#ba3ce8 text on a black background

contrast 4.90:1

Card sample

#ba3ce8 text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3ce8

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.

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

#ba3ce8, answered

What color is #ba3ce8?

#ba3ce8 is a balanced electric violet, closest to Medium Orchid (ΔE2000 5.1). It sits at 284° on the hue wheel with 79% saturation and 57% lightness, which reads as cool.

What is the RGB value of #ba3ce8?

rgb(186, 60, 232) — 186 red, 60 green and 232 blue out of 255, or 72.9% / 23.5% / 91% by channel.

Is #ba3ce8 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1950 and perceived brightness is 53%, so black text on it reaches 4.90:1.

Should I use black or white text on #ba3ce8?

Black. It scores 4.90:1 against #ba3ce8, versus 4.29:1 for white — AA at any size.

What is the complementary color of #ba3ce8?

#6AE83C sits directly opposite on the wheel. Softer options are the split-complements #C0E83C and #3CE864, which give the same contrast with far less vibration.

What colors go well with #ba3ce8?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #854B9B for secondary text, #69BA12 as an accent and #570D72 for hover and pressed states. For a palette, the analogous pair #643CE8 and #E83CC0 stays calm, while #6AE83C is the loudest partner.

What is #ba3ce8 in CMYK for printing?

cmyk(20%, 74%, 0%, 9%). 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 #ba3ce8 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 #E83CD7; nudged cooler, #7B3AEA.

Work with #ba3ce8 in the Color Lab