Skip to content

#ba3eee

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

RGB
186, 62, 238
HSL
282°, 84%, 59%
CMYK
22, 74, 0, 7
Luminance
0.2006

At a glance

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

Hex
#ba3eee
Hue
282°
violet
Saturation
84%
electric
Lightness
59%
balanced
Brightness
93%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2006
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.01:1
Closest name
Medium Orchid
ΔE2000 5.4
Where it sits
Hue282° of 360°
Saturation84%
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#ba3eee
RGBrgb(186, 62, 238)
HSLhsl(282, 84%, 59%)
CMYKcmyk(22%, 74%, 0%, 7%)
LABlab(51.9 73.7 -65.5)
LCHlch(51.9 98.6 318.4)
OKLCHoklch(0.618 0.255 313.6)
Decimal12205806
Display P3color(display-p3 0.729 0.243 0.933)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3eee on white: 4.19:1
AA ✗ fail · AA-large · AAA
Aa
#ba3eee on black: 5.01:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0075F3
deuteranopia · #2E7FEA
tritanopia · #B56694

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba3eee 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
#F4E6FA
#E8C5F6
#DA98F6
#C864F1
#ba3eee
#A414E1
#8911BB
#6E0D96
#510E6C
#320944
Base = 500Lightest = 50 · #F9F2FCDarkest = 950 · #320944
:root {
  --brand-50: #F9F2FC;
  --brand-100: #F4E6FA;
  --brand-200: #E8C5F6;
  --brand-300: #DA98F6;
  --brand-400: #C864F1;
  --brand-500: #ba3eee;
  --brand-600: #A414E1;
  --brand-700: #8911BB;
  --brand-800: #6E0D96;
  --brand-900: #510E6C;
  --brand-950: #320944;
  --brand: #ba3eee;
  --brand-ink: #000000;
}

Colors that work with #ba3eee

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#6EBF0D
Second voice, not a rival
Dark variant#560A75
Hover, pressed, headers
Light variant#F7E8FD
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 #ba3eee

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#72EE3E
Analogous left#623EEE
Analogous right#EE3ECA
Split-complement 1#CAEE3E
Split-complement 2#3EEE62
Triadic 1#EEBA3E
Triadic 2#3EEEBA
Tetradic#EE623E

RGB percentages

Red72.9%
Green24.3%
Blue93.3%

CMYK percentages

Cyan21.8%
Magenta73.9%
Yellow0.0%
Key (black)6.7%

Color previews

#ba3eee text on a black background

contrast 5.01:1

Card sample

#ba3eee text on a white background

contrast 4.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3eee

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.

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

#ba3eee, answered

What color is #ba3eee?

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

What is the RGB value of #ba3eee?

rgb(186, 62, 238) — 186 red, 62 green and 238 blue out of 255, or 72.9% / 24.3% / 93.3% by channel.

Is #ba3eee a light or a dark color?

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

Should I use black or white text on #ba3eee?

Black. It scores 5.01:1 against #ba3eee, versus 4.19:1 for white — AA at any size.

What is the complementary color of #ba3eee?

#72EE3E sits directly opposite on the wheel. Softer options are the split-complements #CAEE3E and #3EEE62, which give the same contrast with far less vibration.

What colors go well with #ba3eee?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6EBF0D as an accent and #560A75 for hover and pressed states. For a palette, the analogous pair #623EEE and #EE3ECA stays calm, while #72EE3E is the loudest partner.

What is #ba3eee in CMYK for printing?

cmyk(22%, 74%, 0%, 7%). 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 #ba3eee 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 #EE3EE1; nudged cooler, #793CF0.

Work with #ba3eee in the Color Lab