Skip to content

#ba9fdc

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

RGB
186, 159, 220
HSL
267°, 47%, 74%
CMYK
16, 28, 0, 14
Luminance
0.4040

At a glance

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

Hex
#ba9fdc
Hue
267°
violet
Saturation
47%
vivid
Lightness
74%
light
Brightness
86%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4040
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Vivid
Best ink
Black
9.08:1
Closest name
Plum
ΔE2000 8
Where it sits
Hue267° of 360°
Saturation47%
Lightness74%
Temperature
Warm ← → Cool69% 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#ba9fdc
RGBrgb(186, 159, 220)
HSLhsl(267, 47%, 74%)
CMYKcmyk(16%, 28%, 0%, 14%)
LABlab(69.8 21.7 -27.3)
LCHlch(69.8 34.8 308.5)
OKLCHoklch(0.748 0.091 304.5)
Decimal12230620
Display P3color(display-p3 0.729 0.624 0.863)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9fdc on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#ba9fdc on black: 9.08:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #93AADF
deuteranopia · #98ABDA
tritanopia · #B5A8B5

Color scale — 50 to 950

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

#F7F5FA
#EFEAF5
#DCD0EB
#ba9fdc
#A684D2
#895BC3
#7441B3
#613696
#4D2C78
#3A2357
#241637
Base = 300Lightest = 50 · #F7F5FADarkest = 950 · #241637
:root {
  --brand-50: #F7F5FA;
  --brand-100: #EFEAF5;
  --brand-200: #DCD0EB;
  --brand-300: #ba9fdc;
  --brand-400: #A684D2;
  --brand-500: #895BC3;
  --brand-600: #7441B3;
  --brand-700: #613696;
  --brand-800: #4D2C78;
  --brand-900: #3A2357;
  --brand-950: #241637;
  --brand: #ba9fdc;
  --brand-ink: #000000;
}

Colors that work with #ba9fdc

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#F7F4FA
Tinted page background
Border#D4C3E9
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#869A32
Second voice, not a rival
Dark variant#3C225D
Hover, pressed, headers
Light variant#F2ECF8
Selected rows, tints
Dark surface#1B1424
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 #ba9fdc

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#C1DC9F
Analogous left#9FA2DC
Analogous right#D99FDC
Split-complement 1#DCD99F
Split-complement 2#A2DC9F
Triadic 1#DCBA9F
Triadic 2#9FDCBA
Tetradic#DC9FA2

RGB percentages

Red72.9%
Green62.4%
Blue86.3%

CMYK percentages

Cyan15.5%
Magenta27.7%
Yellow0.0%
Key (black)13.7%

Color previews

#ba9fdc text on a black background

contrast 9.08:1

Card sample

#ba9fdc text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9fdc

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.

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

#ba9fdc, answered

What color is #ba9fdc?

#ba9fdc is a light vivid violet, closest to Plum (ΔE2000 8). It sits at 267° on the hue wheel with 47% saturation and 74% lightness, which reads as cool.

What is the RGB value of #ba9fdc?

rgb(186, 159, 220) — 186 red, 159 green and 220 blue out of 255, or 72.9% / 62.4% / 86.3% by channel.

Is #ba9fdc a light or a dark color?

It is a mid-tone. Relative luminance is 0.4040 and perceived brightness is 69%, so black text on it reaches 9.08:1.

Should I use black or white text on #ba9fdc?

Black. It scores 9.08:1 against #ba9fdc, versus 2.31:1 for white — AAA at any size.

What is the complementary color of #ba9fdc?

#C1DC9F sits directly opposite on the wheel. Softer options are the split-complements #DCD99F and #A2DC9F, which give the same contrast with far less vibration.

What colors go well with #ba9fdc?

For interface work: #F7F4FA as the surface, #D4C3E9 for borders, #6E4B9B for secondary text, #869A32 as an accent and #3C225D for hover and pressed states. For a palette, the analogous pair #9FA2DC and #D99FDC stays calm, while #C1DC9F is the loudest partner.

What is #ba9fdc in CMYK for printing?

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

Is #ba9fdc warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D09FDC; nudged cooler, #A29EDD.

Work with #ba9fdc in the Color Lab