Skip to content

#ba7ecb

a balanced, soft violet · neutral · closest name: Orchid

RGB
186, 126, 203
HSL
287°, 43%, 65%
CMYK
8, 38, 0, 20
Luminance
0.2967

At a glance

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

Hex
#ba7ecb
Hue
287°
violet
Saturation
43%
soft
Lightness
65%
balanced
Brightness
80%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2967
WCAG relative
Temperature
Neutral
57/100 cool
Color family
Violet
Tone
Soft
Best ink
Black
6.93:1
Closest name
Orchid
ΔE2000 6.5
Where it sits
Hue287° of 360°
Saturation43%
Lightness65%
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#ba7ecb
RGBrgb(186, 126, 203)
HSLhsl(287, 43%, 65%)
CMYKcmyk(8%, 38%, 0%, 20%)
LABlab(61.4 36.4 -30.7)
LCHlch(61.4 47.7 319.8)
OKLCHoklch(0.682 0.128 318.6)
Decimal12222155
Display P3color(display-p3 0.729 0.494 0.796)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ecb on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ecb on black: 6.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7390CE
deuteranopia · #8296C9
tritanopia · #BA879B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba7ecb is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F5FA
#F3EBF5
#E5D1EA
#D4AFDF
#ba7ecb
#AA5FBE
#9846AE
#7E3B91
#652F74
#4B2555
#2F1735
Base = 400Lightest = 50 · #F9F5FADarkest = 950 · #2F1735
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F3EBF5;
  --brand-200: #E5D1EA;
  --brand-300: #D4AFDF;
  --brand-400: #ba7ecb;
  --brand-500: #AA5FBE;
  --brand-600: #9846AE;
  --brand-700: #7E3B91;
  --brand-800: #652F74;
  --brand-900: #4B2555;
  --brand-950: #2F1735;
  --brand: #ba7ecb;
  --brand-ink: #000000;
}

Colors that work with #ba7ecb

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#E0C5E8
Hairlines and dividers
Muted text#894B9B
Captions on the surface
Accent#639636
Second voice, not a rival
Dark variant#4F255B
Hover, pressed, headers
Light variant#F5EDF8
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 #ba7ecb

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
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#8FCB7E
Analogous left#947ECB
Analogous right#CB7EB5
Split-complement 1#B5CB7E
Split-complement 2#7ECB94
Triadic 1#CBBA7E
Triadic 2#7ECBBA
Tetradic#CB947E

RGB percentages

Red72.9%
Green49.4%
Blue79.6%

CMYK percentages

Cyan8.4%
Magenta37.9%
Yellow0.0%
Key (black)20.4%

Color previews

#ba7ecb text on a black background

contrast 6.93:1

Card sample

#ba7ecb text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ecb

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.

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

#ba7ecb, answered

What color is #ba7ecb?

#ba7ecb is a balanced soft violet, closest to Orchid (ΔE2000 6.5). It sits at 287° on the hue wheel with 43% saturation and 65% lightness, which reads as neutral.

What is the RGB value of #ba7ecb?

rgb(186, 126, 203) — 186 red, 126 green and 203 blue out of 255, or 72.9% / 49.4% / 79.6% by channel.

Is #ba7ecb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2967 and perceived brightness is 61%, so black text on it reaches 6.93:1.

Should I use black or white text on #ba7ecb?

Black. It scores 6.93:1 against #ba7ecb, versus 3.03:1 for white — AA at any size.

What is the complementary color of #ba7ecb?

#8FCB7E sits directly opposite on the wheel. Softer options are the split-complements #B5CB7E and #7ECB94, which give the same contrast with far less vibration.

What colors go well with #ba7ecb?

For interface work: #F9F4FA as the surface, #E0C5E8 for borders, #894B9B for secondary text, #639636 as an accent and #4F255B for hover and pressed states. For a palette, the analogous pair #947ECB and #CB7EB5 stays calm, while #8FCB7E is the loudest partner.

What is #ba7ecb in CMYK for printing?

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

Is #ba7ecb 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 #CB7EC0; nudged cooler, #9D7CCD.

Work with #ba7ecb in the Color Lab