Skip to content

#ba03eb

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

RGB
186, 3, 235
HSL
287°, 98%, 47%
CMYK
21, 99, 0, 8
Luminance
0.1650

At a glance

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

Hex
#ba03eb
Hue
287°
violet
Saturation
98%
electric
Lightness
47%
balanced
Brightness
92%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1650
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.88:1
Closest name
Dark Orchid
ΔE2000 6
Where it sits
Hue287° of 360°
Saturation98%
Lightness47%
Temperature
Warm ← → Cool57% 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#ba03eb
RGBrgb(186, 3, 235)
HSLhsl(287, 98%, 47%)
CMYKcmyk(21%, 99%, 0%, 8%)
LABlab(47.6 85.1 -70.7)
LCHlch(47.6 110.6 320.3)
OKLCHoklch(0.588 0.287 315.9)
Decimal12190699
Display P3color(display-p3 0.729 0.012 0.922)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba03eb on white: 4.88:1
AA ✓ pass · AA-large · AAA
Aa
#ba03eb on black: 4.30:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0068F0
deuteranopia · #0075E7
tritanopia · #B6528A

Color scale — 50 to 950

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

#FBF1FD
#F7E4FC
#EFC1FB
#E690FE
#DA59FD
#CE21FC
#ba03eb
#9F03C9
#7F02A1
#5D0674
#3A0449
Base = 600Lightest = 50 · #FBF1FDDarkest = 950 · #3A0449
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F7E4FC;
  --brand-200: #EFC1FB;
  --brand-300: #E690FE;
  --brand-400: #DA59FD;
  --brand-500: #CE21FC;
  --brand-600: #ba03eb;
  --brand-700: #9F03C9;
  --brand-800: #7F02A1;
  --brand-900: #5D0674;
  --brand-950: #3A0449;
  --brand: #ba03eb;
  --brand-ink: #ffffff;
}

Colors that work with #ba03eb

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#E3C0ED
Hairlines and dividers
Muted text#8A4B9B
Captions on the surface
Accent#5ECC00
Second voice, not a rival
Dark variant#64027E
Hover, pressed, headers
Light variant#F9E6FF
Selected rows, tints
Dark surface#211424
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 #ba03eb

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#34EB03
Analogous left#4603EB
Analogous right#EB03A8
Split-complement 1#A8EB03
Split-complement 2#03EB46
Triadic 1#EBBA03
Triadic 2#03EBBA
Tetradic#EB4603

RGB percentages

Red72.9%
Green1.2%
Blue92.2%

CMYK percentages

Cyan20.9%
Magenta98.7%
Yellow0.0%
Key (black)7.8%

Color previews

#ba03eb text on a black background

contrast 4.30:1

Card sample

#ba03eb text on a white background

contrast 4.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba03eb

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.

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

#ba03eb, answered

What color is #ba03eb?

#ba03eb is a balanced electric violet, closest to Dark Orchid (ΔE2000 6). It sits at 287° on the hue wheel with 98% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #ba03eb?

rgb(186, 3, 235) — 186 red, 3 green and 235 blue out of 255, or 72.9% / 1.2% / 92.2% by channel.

Is #ba03eb a light or a dark color?

It is a dark color. Relative luminance is 0.1650 and perceived brightness is 51%, so white text on it reaches 4.88:1.

Should I use black or white text on #ba03eb?

White. It scores 4.88:1 against #ba03eb, versus 4.30:1 for black — AA at any size.

What is the complementary color of #ba03eb?

#34EB03 sits directly opposite on the wheel. Softer options are the split-complements #A8EB03 and #03EB46, which give the same contrast with far less vibration.

What colors go well with #ba03eb?

For interface work: #F9F4FA as the surface, #E3C0ED for borders, #8A4B9B for secondary text, #5ECC00 as an accent and #64027E for hover and pressed states. For a palette, the analogous pair #4603EB and #EB03A8 stays calm, while #34EB03 is the loudest partner.

What is #ba03eb in CMYK for printing?

cmyk(21%, 99%, 0%, 8%). 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 #ba03eb warm or cool?

Neutral — it scores 57 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EB03C7; nudged cooler, #6501EE.

Work with #ba03eb in the Color Lab