Skip to content

#ba9bfc

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

RGB
186, 155, 252
HSL
259°, 94%, 80%
CMYK
26, 39, 0, 1
Luminance
0.4091

At a glance

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

Hex
#ba9bfc
Hue
259°
violet
Saturation
94%
electric
Lightness
80%
light
Brightness
99%
HSV value
Perceived
70%
weighted brightness
Luminance
0.4091
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.18:1
Closest name
Plum
ΔE2000 12
Where it sits
Hue259° of 360°
Saturation94%
Lightness80%
Temperature
Warm ← → Cool73% 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#ba9bfc
RGBrgb(186, 155, 252)
HSLhsl(259, 94%, 80%)
CMYKcmyk(26%, 39%, 0%, 1%)
LABlab(70.1 31.2 -44.2)
LCHlch(70.1 54.1 305.2)
OKLCHoklch(0.755 0.139 297.7)
Decimal12229628
Display P3color(display-p3 0.729 0.608 0.988)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9bfc on white: 2.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba9bfc on black: 9.18:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #81ACFF
deuteranopia · #87AAF9
tritanopia · #ADACC0

Color scale — 50 to 950

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

#F5F2FD
#ECE4FB
#D4C2FA
#ba9bfc
#8E5CFA
#6925F8
#5107EE
#4306C6
#36059E
#2A0872
#1A0547
Base = 300Lightest = 50 · #F5F2FDDarkest = 950 · #1A0547
:root {
  --brand-50: #F5F2FD;
  --brand-100: #ECE4FB;
  --brand-200: #D4C2FA;
  --brand-300: #ba9bfc;
  --brand-400: #8E5CFA;
  --brand-500: #6925F8;
  --brand-600: #5107EE;
  --brand-700: #4306C6;
  --brand-800: #36059E;
  --brand-900: #2A0872;
  --brand-950: #1A0547;
  --brand: #ba9bfc;
  --brand-ink: #000000;
}

Colors that work with #ba9bfc

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#F6F4FA
Tinted page background
Border#CEC0ED
Hairlines and dividers
Muted text#644B9B
Captions on the surface
Accent#BCCA02
Second voice, not a rival
Dark variant#2A047C
Hover, pressed, headers
Light variant#EEE6FE
Selected rows, tints
Dark surface#191424
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 #ba9bfc

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#DDFC9B
Analogous left#9BACFC
Analogous right#EB9BFC
Split-complement 1#FCEB9B
Split-complement 2#ACFC9B
Triadic 1#FCBA9B
Triadic 2#9BFCBA
Tetradic#FC9BAC

RGB percentages

Red72.9%
Green60.8%
Blue98.8%

CMYK percentages

Cyan26.2%
Magenta38.5%
Yellow0.0%
Key (black)1.2%

Color previews

#ba9bfc text on a black background

contrast 9.18:1

Card sample

#ba9bfc text on a white background

contrast 2.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9bfc

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.

#ba9bfc 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ba9bfc, answered

What color is #ba9bfc?

#ba9bfc is a light electric violet, closest to Plum (ΔE2000 12). It sits at 259° on the hue wheel with 94% saturation and 80% lightness, which reads as cool.

What is the RGB value of #ba9bfc?

rgb(186, 155, 252) — 186 red, 155 green and 252 blue out of 255, or 72.9% / 60.8% / 98.8% by channel.

Is #ba9bfc a light or a dark color?

It is a mid-tone. Relative luminance is 0.4091 and perceived brightness is 70%, so black text on it reaches 9.18:1.

Should I use black or white text on #ba9bfc?

Black. It scores 9.18:1 against #ba9bfc, versus 2.29:1 for white — AAA at any size.

What is the complementary color of #ba9bfc?

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

What colors go well with #ba9bfc?

For interface work: #F6F4FA as the surface, #CEC0ED for borders, #644B9B for secondary text, #BCCA02 as an accent and #2A047C for hover and pressed states. For a palette, the analogous pair #9BACFC and #EB9BFC stays calm, while #DDFC9B is the loudest partner.

What is #ba9bfc in CMYK for printing?

cmyk(26%, 39%, 0%, 1%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #ba9bfc warm or cool?

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

Work with #ba9bfc in the Color Lab