Skip to content

#ba7ecf

a light, vivid violet · cool · closest name: Orchid

RGB
186, 126, 207
HSL
284°, 46%, 65%
CMYK
10, 39, 0, 19
Luminance
0.2987

At a glance

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

Hex
#ba7ecf
Hue
284°
violet
Saturation
46%
vivid
Lightness
65%
light
Brightness
81%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2987
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.97:1
Closest name
Orchid
ΔE2000 6.5
Where it sits
Hue284° of 360°
Saturation46%
Lightness65%
Temperature
Warm ← → Cool59% 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#ba7ecf
RGBrgb(186, 126, 207)
HSLhsl(284, 46%, 65%)
CMYKcmyk(10%, 39%, 0%, 19%)
LABlab(61.5 37.2 -32.7)
LCHlch(61.5 49.6 318.7)
OKLCHoklch(0.683 0.132 317.0)
Decimal12222159
Display P3color(display-p3 0.729 0.494 0.812)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ecf on white: 3.01:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ecf on black: 6.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7191D2
deuteranopia · #8097CD
tritanopia · #BA889D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ba7ecf 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
#F2EAF5
#E4D0EB
#D3ADE1
#ba7ecf
#A75BC2
#9542B2
#7C3795
#642C77
#4A2357
#2E1636
Base = 400Lightest = 50 · #F9F5FADarkest = 950 · #2E1636
:root {
  --brand-50: #F9F5FA;
  --brand-100: #F2EAF5;
  --brand-200: #E4D0EB;
  --brand-300: #D3ADE1;
  --brand-400: #ba7ecf;
  --brand-500: #A75BC2;
  --brand-600: #9542B2;
  --brand-700: #7C3795;
  --brand-800: #642C77;
  --brand-900: #4A2357;
  --brand-950: #2E1636;
  --brand: #ba7ecf;
  --brand-ink: #000000;
}

Colors that work with #ba7ecf

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#DFC4E9
Hairlines and dividers
Muted text#864B9B
Captions on the surface
Accent#679933
Second voice, not a rival
Dark variant#4E235D
Hover, pressed, headers
Light variant#F5ECF8
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 #ba7ecf

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
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • 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#93CF7E
Analogous left#917ECF
Analogous right#CF7EBC
Split-complement 1#BCCF7E
Split-complement 2#7ECF91
Triadic 1#CFBA7E
Triadic 2#7ECFBA
Tetradic#CF917E

RGB percentages

Red72.9%
Green49.4%
Blue81.2%

CMYK percentages

Cyan10.1%
Magenta39.1%
Yellow0.0%
Key (black)18.8%

Color previews

#ba7ecf text on a black background

contrast 6.97:1

Card sample

#ba7ecf text on a white background

contrast 3.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ecf

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.

#ba7ecf 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
SurfacesBadgesHighlightsEmpty states
Print note

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

#ba7ecf, answered

What color is #ba7ecf?

#ba7ecf is a light vivid violet, closest to Orchid (ΔE2000 6.5). It sits at 284° on the hue wheel with 46% saturation and 65% lightness, which reads as cool.

What is the RGB value of #ba7ecf?

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

Is #ba7ecf a light or a dark color?

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

Should I use black or white text on #ba7ecf?

Black. It scores 6.97:1 against #ba7ecf, versus 3.01:1 for white — AA at any size.

What is the complementary color of #ba7ecf?

#93CF7E sits directly opposite on the wheel. Softer options are the split-complements #BCCF7E and #7ECF91, which give the same contrast with far less vibration.

What colors go well with #ba7ecf?

For interface work: #F9F4FA as the surface, #DFC4E9 for borders, #864B9B for secondary text, #679933 as an accent and #4E235D for hover and pressed states. For a palette, the analogous pair #917ECF and #CF7EBC stays calm, while #93CF7E is the loudest partner.

What is #ba7ecf in CMYK for printing?

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

Is #ba7ecf warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF7EC6; nudged cooler, #9C7CD1.

Work with #ba7ecf in the Color Lab