Skip to content

#ba99f5

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

RGB
186, 153, 245
HSL
262°, 82%, 78%
CMYK
24, 38, 0, 4
Luminance
0.3981

At a glance

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

Hex
#ba99f5
Hue
262°
violet
Saturation
82%
electric
Lightness
78%
light
Brightness
96%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3981
WCAG relative
Temperature
Cool
71/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
8.96:1
Closest name
Plum
ΔE2000 11.1
Where it sits
Hue262° of 360°
Saturation82%
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#ba99f5
RGBrgb(186, 153, 245)
HSLhsl(262, 82%, 78%)
CMYKcmyk(24%, 38%, 0%, 4%)
LABlab(69.3 30.7 -41.6)
LCHlch(69.3 51.7 306.4)
OKLCHoklch(0.748 0.133 299.7)
Decimal12229109
Display P3color(display-p3 0.729 0.600 0.961)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba99f5 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#ba99f5 on black: 8.96:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #82A9F9
deuteranopia · #88A9F3
tritanopia · #AFA8BC

Color scale — 50 to 950

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

#F6F2FC
#EDE6FA
#D7C6F6
#ba99f5
#9766F0
#7533EB
#5E16DF
#4E12BA
#3F0F95
#300F6B
#1E0943
Base = 300Lightest = 50 · #F6F2FCDarkest = 950 · #1E0943
:root {
  --brand-50: #F6F2FC;
  --brand-100: #EDE6FA;
  --brand-200: #D7C6F6;
  --brand-300: #ba99f5;
  --brand-400: #9766F0;
  --brand-500: #7533EB;
  --brand-600: #5E16DF;
  --brand-700: #4E12BA;
  --brand-800: #3F0F95;
  --brand-900: #300F6B;
  --brand-950: #1E0943;
  --brand: #ba99f5;
  --brand-ink: #000000;
}

Colors that work with #ba99f5

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#674B9B
Captions on the surface
Accent#ABBD0F
Second voice, not a rival
Dark variant#310B74
Hover, pressed, headers
Light variant#EFE8FD
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 #ba99f5

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#D4F599
Analogous left#99A6F5
Analogous right#E899F5
Split-complement 1#F5E899
Split-complement 2#A6F599
Triadic 1#F5BA99
Triadic 2#99F5BA
Tetradic#F599A6

RGB percentages

Red72.9%
Green60.0%
Blue96.1%

CMYK percentages

Cyan24.1%
Magenta37.6%
Yellow0.0%
Key (black)3.9%

Color previews

#ba99f5 text on a black background

contrast 8.96:1

Card sample

#ba99f5 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba99f5

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.

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

#ba99f5, answered

What color is #ba99f5?

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

What is the RGB value of #ba99f5?

rgb(186, 153, 245) — 186 red, 153 green and 245 blue out of 255, or 72.9% / 60% / 96.1% by channel.

Is #ba99f5 a light or a dark color?

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

Should I use black or white text on #ba99f5?

Black. It scores 8.96:1 against #ba99f5, versus 2.34:1 for white — AAA at any size.

What is the complementary color of #ba99f5?

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

What colors go well with #ba99f5?

For interface work: #F6F4FA as the surface, #D0C0ED for borders, #674B9B for secondary text, #ABBD0F as an accent and #310B74 for hover and pressed states. For a palette, the analogous pair #99A6F5 and #E899F5 stays calm, while #D4F599 is the loudest partner.

What is #ba99f5 in CMYK for printing?

cmyk(24%, 38%, 0%, 4%). 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 #ba99f5 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 #DC99F5; nudged cooler, #9899F6.

Work with #ba99f5 in the Color Lab