Skip to content

#ba37ff

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

RGB
186, 55, 255
HSL
279°, 100%, 61%
CMYK
27, 78, 0, 0
Luminance
0.2039

At a glance

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

Hex
#ba37ff
Hue
279°
violet
Saturation
100%
electric
Lightness
61%
balanced
Brightness
100%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2039
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
5.08:1
Closest name
Medium Orchid
ΔE2000 7.3
Where it sits
Hue279° of 360°
Saturation100%
Lightness61%
Temperature
Warm ← → Cool62% 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#ba37ff
RGBrgb(186, 55, 255)
HSLhsl(279, 100%, 61%)
CMYKcmyk(27%, 78%, 0%, 0%)
LABlab(52.3 79.3 -74.3)
LCHlch(52.3 108.7 316.9)
OKLCHoklch(0.625 0.276 310.2)
Decimal12204031
Display P3color(display-p3 0.729 0.216 1.000)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba37ff on white: 4.14:1
AA ✗ fail · AA-large · AAA
Aa
#ba37ff on black: 5.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077FF
deuteranopia · #007FFB
tritanopia · #B06A9C

Color scale — 50 to 950

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

#F9F1FE
#F4E3FC
#E7C0FC
#D88FFF
#C557FF
#ba37ff
#A000F5
#8600CC
#6B00A3
#4F0576
#310349
Base = 500Lightest = 50 · #F9F1FEDarkest = 950 · #310349
:root {
  --brand-50: #F9F1FE;
  --brand-100: #F4E3FC;
  --brand-200: #E7C0FC;
  --brand-300: #D88FFF;
  --brand-400: #C557FF;
  --brand-500: #ba37ff;
  --brand-600: #A000F5;
  --brand-700: #8600CC;
  --brand-800: #6B00A3;
  --brand-900: #4F0576;
  --brand-950: #310349;
  --brand: #ba37ff;
  --brand-ink: #000000;
}

Colors that work with #ba37ff

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#F8F4FA
Tinted page background
Border#DDC0ED
Hairlines and dividers
Muted text#7F4B9B
Captions on the surface
Accent#79CC00
Second voice, not a rival
Dark variant#540080
Hover, pressed, headers
Light variant#F6E5FF
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 #ba37ff

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#7CFF37
Analogous left#5637FF
Analogous right#FF37E0
Split-complement 1#E0FF37
Split-complement 2#37FF56
Triadic 1#FFBA37
Triadic 2#37FFBA
Tetradic#FF5637

RGB percentages

Red72.9%
Green21.6%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta78.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ba37ff text on a black background

contrast 5.08:1

Card sample

#ba37ff text on a white background

contrast 4.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba37ff

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.

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

#ba37ff, answered

What color is #ba37ff?

#ba37ff is a balanced electric violet, closest to Medium Orchid (ΔE2000 7.3). It sits at 279° on the hue wheel with 100% saturation and 61% lightness, which reads as cool.

What is the RGB value of #ba37ff?

rgb(186, 55, 255) — 186 red, 55 green and 255 blue out of 255, or 72.9% / 21.6% / 100% by channel.

Is #ba37ff a light or a dark color?

It is a mid-tone. Relative luminance is 0.2039 and perceived brightness is 55%, so black text on it reaches 5.08:1.

Should I use black or white text on #ba37ff?

Black. It scores 5.08:1 against #ba37ff, versus 4.14:1 for white — AA at any size.

What is the complementary color of #ba37ff?

#7CFF37 sits directly opposite on the wheel. Softer options are the split-complements #E0FF37 and #37FF56, which give the same contrast with far less vibration.

What colors go well with #ba37ff?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #79CC00 as an accent and #540080 for hover and pressed states. For a palette, the analogous pair #5637FF and #FF37E0 stays calm, while #7CFF37 is the loudest partner.

What is #ba37ff in CMYK for printing?

cmyk(27%, 78%, 0%, 0%). 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 #ba37ff warm or cool?

Cool — it scores 62 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FF37FB; nudged cooler, #7137FF.

Work with #ba37ff in the Color Lab