Skip to content

#ba7ddb

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

RGB
186, 125, 219
HSL
279°, 57%, 68%
CMYK
15, 43, 0, 14
Luminance
0.3022

At a glance

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

Hex
#ba7ddb
Hue
279°
violet
Saturation
57%
vivid
Lightness
68%
light
Brightness
86%
HSV value
Perceived
62%
weighted brightness
Luminance
0.3022
WCAG relative
Temperature
Cool
62/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
7.04:1
Closest name
Orchid
ΔE2000 6.9
Where it sits
Hue279° of 360°
Saturation57%
Lightness68%
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#ba7ddb
RGBrgb(186, 125, 219)
HSLhsl(279, 57%, 68%)
CMYKcmyk(15%, 43%, 0%, 14%)
LABlab(61.8 40.3 -39.0)
LCHlch(61.8 56.1 316.0)
OKLCHoklch(0.688 0.147 312.9)
Decimal12221915
Display P3color(display-p3 0.729 0.490 0.859)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ddb on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ddb on black: 7.04:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6A92DE
deuteranopia · #7A97D8
tritanopia · #B78BA2

Color scale — 50 to 950

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

#F8F4FB
#F2E9F6
#E3CDEE
#D0A7E7
#ba7ddb
#A24FCE
#8F35C0
#772CA0
#5F2380
#471D5D
#2C123A
Base = 400Lightest = 50 · #F8F4FBDarkest = 950 · #2C123A
:root {
  --brand-50: #F8F4FB;
  --brand-100: #F2E9F6;
  --brand-200: #E3CDEE;
  --brand-300: #D0A7E7;
  --brand-400: #ba7ddb;
  --brand-500: #A24FCE;
  --brand-600: #8F35C0;
  --brand-700: #772CA0;
  --brand-800: #5F2380;
  --brand-900: #471D5D;
  --brand-950: #2C123A;
  --brand: #ba7ddb;
  --brand-ink: #000000;
}

Colors that work with #ba7ddb

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#72A329
Second voice, not a rival
Dark variant#4A1C64
Hover, pressed, headers
Light variant#F4EBF9
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 #ba7ddb

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#9EDB7D
Analogous left#8B7DDB
Analogous right#DB7DCD
Split-complement 1#CDDB7D
Split-complement 2#7DDB8B
Triadic 1#DBBA7D
Triadic 2#7DDBBA
Tetradic#DB8B7D

RGB percentages

Red72.9%
Green49.0%
Blue85.9%

CMYK percentages

Cyan15.1%
Magenta42.9%
Yellow0.0%
Key (black)14.1%

Color previews

#ba7ddb text on a black background

contrast 7.04:1

Card sample

#ba7ddb text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ddb

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.

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

#ba7ddb, answered

What color is #ba7ddb?

#ba7ddb is a light vivid violet, closest to Orchid (ΔE2000 6.9). It sits at 279° on the hue wheel with 57% saturation and 68% lightness, which reads as cool.

What is the RGB value of #ba7ddb?

rgb(186, 125, 219) — 186 red, 125 green and 219 blue out of 255, or 72.9% / 49% / 85.9% by channel.

Is #ba7ddb a light or a dark color?

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

Should I use black or white text on #ba7ddb?

Black. It scores 7.04:1 against #ba7ddb, versus 2.98:1 for white — AAA at any size.

What is the complementary color of #ba7ddb?

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

What colors go well with #ba7ddb?

For interface work: #F8F4FA as the surface, #DDC0ED for borders, #7F4B9B for secondary text, #72A329 as an accent and #4A1C64 for hover and pressed states. For a palette, the analogous pair #8B7DDB and #DB7DCD stays calm, while #9EDB7D is the loudest partner.

What is #ba7ddb in CMYK for printing?

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

Is #ba7ddb 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 #DB7DDA; nudged cooler, #977CDD.

Work with #ba7ddb in the Color Lab