Skip to content

#ba9af3

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

RGB
186, 154, 243
HSL
262°, 79%, 78%
CMYK
24, 37, 0, 5
Luminance
0.4002

At a glance

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

Hex
#ba9af3
Hue
262°
violet
Saturation
79%
electric
Lightness
78%
light
Brightness
95%
HSV value
Perceived
69%
weighted brightness
Luminance
0.4002
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
9.00:1
Closest name
Plum
ΔE2000 10.8
Where it sits
Hue262° of 360°
Saturation79%
Lightness78%
Temperature
Warm ← → Cool71% 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#ba9af3
RGBrgb(186, 154, 243)
HSLhsl(262, 79%, 78%)
CMYKcmyk(24%, 37%, 0%, 5%)
LABlab(69.5 29.6 -40.3)
LCHlch(69.5 50.0 306.3)
OKLCHoklch(0.749 0.129 299.8)
Decimal12229363
Display P3color(display-p3 0.729 0.604 0.953)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9af3 on white: 2.33:1
AA ✗ fail · AA-large · AAA
Aa
#ba9af3 on black: 9.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #84A9F6
deuteranopia · #8AA9F1
tritanopia · #B0A9BB

Color scale — 50 to 950

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

#F6F3FC
#EDE6F9
#D7C7F5
#ba9af3
#9869ED
#7636E7
#5F1ADB
#4F16B6
#401192
#31116A
#1E0B42
Base = 300Lightest = 50 · #F6F3FCDarkest = 950 · #1E0B42
:root {
  --brand-50: #F6F3FC;
  --brand-100: #EDE6F9;
  --brand-200: #D7C7F5;
  --brand-300: #ba9af3;
  --brand-400: #9869ED;
  --brand-500: #7636E7;
  --brand-600: #5F1ADB;
  --brand-700: #4F16B6;
  --brand-800: #401192;
  --brand-900: #31116A;
  --brand-950: #1E0B42;
  --brand: #ba9af3;
  --brand-ink: #000000;
}

Colors that work with #ba9af3

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#D0C0ED
Hairlines and dividers
Muted text#684B9B
Captions on the surface
Accent#A8BA12
Second voice, not a rival
Dark variant#320E72
Hover, pressed, headers
Light variant#EFE8FC
Selected rows, tints
Dark surface#1A1424
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 #ba9af3

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#D3F39A
Analogous left#9AA6F3
Analogous right#E79AF3
Split-complement 1#F3E79A
Split-complement 2#A6F39A
Triadic 1#F3BA9A
Triadic 2#9AF3BA
Tetradic#F39AA6

RGB percentages

Red72.9%
Green60.4%
Blue95.3%

CMYK percentages

Cyan23.5%
Magenta36.6%
Yellow0.0%
Key (black)4.7%

Color previews

#ba9af3 text on a black background

contrast 9.00:1

Card sample

#ba9af3 text on a white background

contrast 2.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9af3

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.

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

#ba9af3, answered

What color is #ba9af3?

#ba9af3 is a light electric violet, closest to Plum (ΔE2000 10.8). It sits at 262° on the hue wheel with 79% saturation and 78% lightness, which reads as cool.

What is the RGB value of #ba9af3?

rgb(186, 154, 243) — 186 red, 154 green and 243 blue out of 255, or 72.9% / 60.4% / 95.3% by channel.

Is #ba9af3 a light or a dark color?

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

Should I use black or white text on #ba9af3?

Black. It scores 9.00:1 against #ba9af3, versus 2.33:1 for white — AAA at any size.

What is the complementary color of #ba9af3?

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

What colors go well with #ba9af3?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #684B9B for secondary text, #A8BA12 as an accent and #320E72 for hover and pressed states. For a palette, the analogous pair #9AA6F3 and #E79AF3 stays calm, while #D3F39A is the loudest partner.

What is #ba9af3 in CMYK for printing?

cmyk(24%, 37%, 0%, 5%). 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 #ba9af3 warm or cool?

Cool — it scores 71 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DB9AF3; nudged cooler, #9999F4.

Work with #ba9af3 in the Color Lab