Skip to content

#ba3cef

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

RGB
186, 60, 239
HSL
282°, 85%, 59%
CMYK
22, 75, 0, 6
Luminance
0.1990

At a glance

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

Hex
#ba3cef
Hue
282°
violet
Saturation
85%
electric
Lightness
59%
balanced
Brightness
94%
HSV value
Perceived
54%
weighted brightness
Luminance
0.1990
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
4.98:1
Closest name
Medium Orchid
ΔE2000 5.6
Where it sits
Hue282° of 360°
Saturation85%
Lightness59%
Temperature
Warm ← → Cool60% 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#ba3cef
RGBrgb(186, 60, 239)
HSLhsl(282, 85%, 59%)
CMYKcmyk(22%, 75%, 0%, 6%)
LABlab(51.7 74.6 -66.3)
LCHlch(51.7 99.8 318.4)
OKLCHoklch(0.617 0.258 313.5)
Decimal12205295
Display P3color(display-p3 0.729 0.235 0.937)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3cef on white: 4.22:1
AA ✗ fail · AA-large · AAA
Aa
#ba3cef on black: 4.98:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0075F4
deuteranopia · #297EEB
tritanopia · #B46594

Color scale — 50 to 950

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

#F9F2FC
#F4E5FA
#E8C5F7
#DA97F6
#C863F2
#ba3cef
#A513E2
#8910BC
#6E0C97
#510D6D
#320844
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #320844
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F4E5FA;
  --brand-200: #E8C5F7;
  --brand-300: #DA97F6;
  --brand-400: #C863F2;
  --brand-500: #ba3cef;
  --brand-600: #A513E2;
  --brand-700: #8910BC;
  --brand-800: #6E0C97;
  --brand-900: #510D6D;
  --brand-950: #320844;
  --brand: #ba3cef;
  --brand-ink: #000000;
}

Colors that work with #ba3cef

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#DFC0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6EC00C
Second voice, not a rival
Dark variant#560A76
Hover, pressed, headers
Light variant#F7E7FD
Selected rows, tints
Dark surface#1F1424
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 #ba3cef

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#71EF3C
Analogous left#603CEF
Analogous right#EF3CCB
Split-complement 1#CBEF3C
Split-complement 2#3CEF60
Triadic 1#EFBA3C
Triadic 2#3CEFBA
Tetradic#EF603C

RGB percentages

Red72.9%
Green23.5%
Blue93.7%

CMYK percentages

Cyan22.2%
Magenta74.9%
Yellow0.0%
Key (black)6.3%

Color previews

#ba3cef text on a black background

contrast 4.98:1

Card sample

#ba3cef text on a white background

contrast 4.22:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3cef

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.

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

#ba3cef, answered

What color is #ba3cef?

#ba3cef is a balanced electric violet, closest to Medium Orchid (ΔE2000 5.6). It sits at 282° on the hue wheel with 85% saturation and 59% lightness, which reads as cool.

What is the RGB value of #ba3cef?

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

Is #ba3cef a light or a dark color?

It is a mid-tone. Relative luminance is 0.1990 and perceived brightness is 54%, so black text on it reaches 4.98:1.

Should I use black or white text on #ba3cef?

Black. It scores 4.98:1 against #ba3cef, versus 4.22:1 for white — AA at any size.

What is the complementary color of #ba3cef?

#71EF3C sits directly opposite on the wheel. Softer options are the split-complements #CBEF3C and #3CEF60, which give the same contrast with far less vibration.

What colors go well with #ba3cef?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6EC00C as an accent and #560A76 for hover and pressed states. For a palette, the analogous pair #603CEF and #EF3CCB stays calm, while #71EF3C is the loudest partner.

What is #ba3cef in CMYK for printing?

cmyk(22%, 75%, 0%, 6%). 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 #ba3cef warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EF3CE2; nudged cooler, #773AF1.

Work with #ba3cef in the Color Lab