Skip to content

#ba33db

a balanced, vivid violet · neutral · closest name: Medium Orchid

RGB
186, 51, 219
HSL
288°, 70%, 53%
CMYK
15, 77, 0, 14
Luminance
0.1792

At a glance

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

Hex
#ba33db
Hue
288°
violet
Saturation
70%
vivid
Lightness
53%
balanced
Brightness
86%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1792
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
4.58:1
Closest name
Medium Orchid
ΔE2000 5.7
Where it sits
Hue288° of 360°
Saturation70%
Lightness53%
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#ba33db
RGBrgb(186, 51, 219)
HSLhsl(288, 70%, 53%)
CMYKcmyk(15%, 77%, 0%, 14%)
LABlab(49.4 73.8 -58.7)
LCHlch(49.4 94.3 321.5)
OKLCHoklch(0.597 0.250 318.7)
Decimal12202971
Display P3color(display-p3 0.729 0.200 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba33db on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ba33db on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006DE0
deuteranopia · #3D7AD7
tritanopia · #B95887

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba33db 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
#F5E7F8
#EAC9F2
#DFA0EE
#CF70E6
#ba33db
#AE25D0
#911FAD
#74188B
#551665
#350E3F
Base = 500Lightest = 50 · #FAF3FCDarkest = 950 · #350E3F
:root {
  --brand-50: #FAF3FC;
  --brand-100: #F5E7F8;
  --brand-200: #EAC9F2;
  --brand-300: #DFA0EE;
  --brand-400: #CF70E6;
  --brand-500: #ba33db;
  --brand-600: #AE25D0;
  --brand-700: #911FAD;
  --brand-800: #74188B;
  --brand-900: #551665;
  --brand-950: #350E3F;
  --brand: #ba33db;
  --brand-ink: #ffffff;
}

Colors that work with #ba33db

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#E4C0ED
Hairlines and dividers
Muted text#8B4B9B
Captions on the surface
Accent#5DB21A
Second voice, not a rival
Dark variant#5B136C
Hover, pressed, headers
Light variant#F8E9FB
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 #ba33db

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#54DB33
Analogous left#6633DB
Analogous right#DB33A8
Split-complement 1#A8DB33
Split-complement 2#33DB66
Triadic 1#DBBA33
Triadic 2#33DBBA
Tetradic#DB6633

RGB percentages

Red72.9%
Green20.0%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta76.7%
Yellow0.0%
Key (black)14.1%

Color previews

#ba33db text on a black background

contrast 4.58:1

Card sample

#ba33db text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba33db

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.

#ba33db 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

Converts to four-color process without much drama. Proof it anyway.

#ba33db, answered

What color is #ba33db?

#ba33db is a balanced vivid violet, closest to Medium Orchid (ΔE2000 5.7). It sits at 288° on the hue wheel with 70% saturation and 53% lightness, which reads as neutral.

What is the RGB value of #ba33db?

rgb(186, 51, 219) — 186 red, 51 green and 219 blue out of 255, or 72.9% / 20% / 85.9% by channel.

Is #ba33db a light or a dark color?

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

Should I use black or white text on #ba33db?

White. It scores 4.58:1 against #ba33db, versus 4.58:1 for black — AA at any size.

What is the complementary color of #ba33db?

#54DB33 sits directly opposite on the wheel. Softer options are the split-complements #A8DB33 and #33DB66, which give the same contrast with far less vibration.

What colors go well with #ba33db?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8B4B9B for secondary text, #5DB21A as an accent and #5B136C for hover and pressed states. For a palette, the analogous pair #6633DB and #DB33A8 stays calm, while #54DB33 is the loudest partner.

What is #ba33db in CMYK for printing?

cmyk(15%, 77%, 0%, 14%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ba33db 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 #DB33BE; nudged cooler, #7C30DD.

Work with #ba33db in the Color Lab