#BA87FA#BA87FA

#BA87FA is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.0% C 0.168 H 302.9°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#BA87FA
RGBrgb(186, 135, 250)
HSLhsl(267, 92%, 75%)
HSVhsv(267, 46%, 98%)
CMYKcmyk(25.6%, 46%, 0%, 2%)
CIE-LABlab(65.49, 41.78, -50.40)
CIE-LCHlch(65.49, 65.46, 309.66°)
OKLaboklab(71.96% 0.0913 -0.1412)
OKLCHoklch(71.96% 0.168 302.9)
XYZxyz(46.1652, 34.6692, 94.6837)
Luminance0.3467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87FA #C7FA87
analogous
#878DFA #BA87FA #F487FA
triadic
#BA87FA #FABA87 #87FABA
tetradic
#BA87FA #FA878D #C7FA87 #87FAF4
square
#BA87FA #FA878D #C7FA87 #87FAF4
split-complementary
#BA87FA #FAF487 #8DFA87
monochromatic
#7611F5 #984CF8 #BA87FA #DCC2FC #EEE2FE

Accessibility & contrast

On white

2.65
#BA87FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#BA87FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87FA
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87FA#FFFFFF#000000##000000
##BA87FA1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#669EFE
Deuteranopia (green-blind)
#739FF7
Tritanopia (blue-blind)
#AF9BB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87fa;
/* rgb */ color: rgb(186, 135, 250);
/* oklch */ color: oklch(72.0% 0.168 302.9);
Tailwind
colors: {
  custom: {
    50: '#d1abfc',
    500: '#ba87fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba87fa;
$custom-light: #d1abfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87fa",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 266.609,
    "s": 92,
    "l": 75.49
  },
  "oklch": {
    "l": 0.71958,
    "c": 0.16809,
    "h": 302.9
  },
  "luminance": 0.34669
}

Semantic roles & 50–950 ramp

primary
#BA87FA
secondary
#E7F6D5
accent
#E60080
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87FA

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#BA87FA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva