Skip to content

#ba7fd5

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

RGB
186, 127, 213
HSL
281°, 51%, 67%
CMYK
13, 40, 0, 17
Luminance
0.3042

At a glance

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

Hex
#ba7fd5
Hue
281°
violet
Saturation
51%
vivid
Lightness
67%
light
Brightness
84%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3042
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.08:1
Closest name
Orchid
ΔE2000 6.8
Where it sits
Hue281° of 360°
Saturation51%
Lightness67%
Temperature
Warm ← → Cool60% 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#ba7fd5
RGBrgb(186, 127, 213)
HSLhsl(281, 51%, 67%)
CMYKcmyk(13%, 40%, 0%, 17%)
LABlab(62.0 37.9 -35.4)
LCHlch(62.0 51.9 317.0)
OKLCHoklch(0.688 0.137 314.6)
Decimal12222421
Display P3color(display-p3 0.729 0.498 0.835)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fd5 on white: 2.96:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fd5 on black: 7.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7092D8
deuteranopia · #7F98D3
tritanopia · #B88BA0

Color scale — 50 to 950

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

#F8F4FA
#F2EAF6
#E3CFED
#D1ABE3
#ba7fd5
#A456C8
#923CB8
#79329A
#61287B
#48215A
#2D1438
Base = 400Lightest = 50 · #F8F4FADarkest = 950 · #2D1438
:root {
  --brand-50: #F8F4FA;
  --brand-100: #F2EAF6;
  --brand-200: #E3CFED;
  --brand-300: #D1ABE3;
  --brand-400: #ba7fd5;
  --brand-500: #A456C8;
  --brand-600: #923CB8;
  --brand-700: #79329A;
  --brand-800: #61287B;
  --brand-900: #48215A;
  --brand-950: #2D1438;
  --brand: #ba7fd5;
  --brand-ink: #000000;
}

Colors that work with #ba7fd5

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#DEC2EB
Hairlines and dividers
Muted text#824B9B
Captions on the surface
Accent#6D9D2F
Second voice, not a rival
Dark variant#4C1F60
Hover, pressed, headers
Light variant#F5ECF9
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 #ba7fd5

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
  • Text of any size on white — fails WCAG AA
  • 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#9AD57F
Analogous left#8F7FD5
Analogous right#D57FC5
Split-complement 1#C5D57F
Split-complement 2#7FD58F
Triadic 1#D5BA7F
Triadic 2#7FD5BA
Tetradic#D58F7F

RGB percentages

Red72.9%
Green49.8%
Blue83.5%

CMYK percentages

Cyan12.7%
Magenta40.4%
Yellow0.0%
Key (black)16.5%

Color previews

#ba7fd5 text on a black background

contrast 7.08:1

Card sample

#ba7fd5 text on a white background

contrast 2.96:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fd5

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.

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

#ba7fd5, answered

What color is #ba7fd5?

#ba7fd5 is a light vivid violet, closest to Orchid (ΔE2000 6.8). It sits at 281° on the hue wheel with 51% saturation and 67% lightness, which reads as cool.

What is the RGB value of #ba7fd5?

rgb(186, 127, 213) — 186 red, 127 green and 213 blue out of 255, or 72.9% / 49.8% / 83.5% by channel.

Is #ba7fd5 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3042 and perceived brightness is 62%, so black text on it reaches 7.08:1.

Should I use black or white text on #ba7fd5?

Black. It scores 7.08:1 against #ba7fd5, versus 2.96:1 for white — AAA at any size.

What is the complementary color of #ba7fd5?

#9AD57F sits directly opposite on the wheel. Softer options are the split-complements #C5D57F and #7FD58F, which give the same contrast with far less vibration.

What colors go well with #ba7fd5?

For interface work: #F8F4FA as the surface, #DEC2EB for borders, #824B9B for secondary text, #6D9D2F as an accent and #4C1F60 for hover and pressed states. For a palette, the analogous pair #8F7FD5 and #D57FC5 stays calm, while #9AD57F is the loudest partner.

What is #ba7fd5 in CMYK for printing?

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

Is #ba7fd5 warm or cool?

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

Work with #ba7fd5 in the Color Lab