Skip to content

#ba7cd4

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

RGB
186, 124, 212
HSL
282°, 51%, 66%
CMYK
12, 42, 0, 17
Luminance
0.2961

At a glance

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

Hex
#ba7cd4
Hue
282°
violet
Saturation
51%
vivid
Lightness
66%
light
Brightness
83%
HSV value
Perceived
61%
weighted brightness
Luminance
0.2961
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
6.92:1
Closest name
Orchid
ΔE2000 6.4
Where it sits
Hue282° of 360°
Saturation51%
Lightness66%
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#ba7cd4
RGBrgb(186, 124, 212)
HSLhsl(282, 51%, 66%)
CMYKcmyk(12%, 42%, 0%, 17%)
LABlab(61.3 39.4 -35.9)
LCHlch(61.3 53.3 317.6)
OKLCHoklch(0.682 0.141 315.4)
Decimal12221652
Display P3color(display-p3 0.729 0.486 0.831)

Copy-ready code

/* CSS */
color: #ba7cd4;
background-color: #ba7cd4;
/* Tailwind (arbitrary) */
class="text-[#ba7cd4] bg-[#ba7cd4]"
/* SCSS */
$brand: #ba7cd4;
/* SwiftUI */
Color(red: 0.729, green: 0.486, blue: 0.831)
/* Android */
Color.parseColor("#ba7cd4")
/* Flutter */
Color(0xFFBA7CD4)
/* Python / OpenCV (BGR) */
(212, 124, 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 #ba7cd4 · 6.92: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.92:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ba7cd4 as text scores 3.03:1 on white and 6.92:1 on black.

Accessibility — WCAG contrast

Aa
#ba7cd4 on white: 3.03:1
AA ✗ fail · AA-large · AAA
Aa
#ba7cd4 on black: 6.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6D90D7
deuteranopia · #7D96D1
tritanopia · #B9889E

Color scale — 50 to 950

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

#F9F4FA
#F2EAF6
#E4CFED
#D3ABE3
#ba7cd4
#A656C8
#943CB8
#7B329A
#63287B
#49215A
#2E1438
Base = 400Lightest = 50 · #F9F4FADarkest = 950 · #2E1438
:root {
  --brand-50: #F9F4FA;
  --brand-100: #F2EAF6;
  --brand-200: #E4CFED;
  --brand-300: #D3ABE3;
  --brand-400: #ba7cd4;
  --brand-500: #A656C8;
  --brand-600: #943CB8;
  --brand-700: #7B329A;
  --brand-800: #63287B;
  --brand-900: #49215A;
  --brand-950: #2E1438;
  --brand: #ba7cd4;
  --brand-ink: #000000;
}

Colors that work with #ba7cd4

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#DFC2EB
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6A9E2E
Second voice, not a rival
Dark variant#4D1F60
Hover, pressed, headers
Light variant#F5ECF9
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 #ba7cd4

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#96D47C
Analogous left#8E7CD4
Analogous right#D47CC2
Split-complement 1#C2D47C
Split-complement 2#7CD48E
Triadic 1#D4BA7C
Triadic 2#7CD4BA
Tetradic#D48E7C

RGB percentages

Red72.9%
Green48.6%
Blue83.1%

CMYK percentages

Cyan12.3%
Magenta41.5%
Yellow0.0%
Key (black)16.9%

Color previews

#ba7cd4 text on a black background

contrast 6.92:1

Card sample

#ba7cd4 text on a white background

contrast 3.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7cd4

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.

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

#ba7cd4, answered

What color is #ba7cd4?

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

What is the RGB value of #ba7cd4?

rgb(186, 124, 212) — 186 red, 124 green and 212 blue out of 255, or 72.9% / 48.6% / 83.1% by channel.

Is #ba7cd4 a light or a dark color?

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

Should I use black or white text on #ba7cd4?

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

What is the complementary color of #ba7cd4?

#96D47C sits directly opposite on the wheel. Softer options are the split-complements #C2D47C and #7CD48E, which give the same contrast with far less vibration.

What colors go well with #ba7cd4?

For interface work: #F9F4FA as the surface, #DFC2EB for borders, #834B9B for secondary text, #6A9E2E as an accent and #4D1F60 for hover and pressed states. For a palette, the analogous pair #8E7CD4 and #D47CC2 stays calm, while #96D47C is the loudest partner.

What is #ba7cd4 in CMYK for printing?

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

Is #ba7cd4 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 #D47CCE; nudged cooler, #997AD6.

Work with #ba7cd4 in the Color Lab