#BA87F9#BA87F9

#BA87F9 is a light, vivid violet. Relative luminance 0.346; OKLCH L 71.9% C 0.167 H 303.1°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#BA87F9
RGBrgb(186, 135, 249)
HSLhsl(267, 90%, 75%)
HSVhsv(267, 46%, 98%)
CMYKcmyk(25.3%, 45.8%, 0%, 2.4%)
CIE-LABlab(65.44, 41.55, -49.93)
CIE-LCHlch(65.44, 64.95, 309.77°)
OKLaboklab(71.91% 0.0911 -0.1398)
OKLCHoklch(71.91% 0.167 303.1)
XYZxyz(46.0088, 34.6067, 93.8601)
Luminance0.3461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F9 #C6F987
analogous
#878DF9 #BA87F9 #F387F9
triadic
#BA87F9 #F9BA87 #87F9BA
tetradic
#BA87F9 #F9878D #C6F987 #87F9F3
square
#BA87F9 #F9878D #C6F987 #87F9F3
split-complementary
#BA87F9 #F9F387 #8DF987
monochromatic
#7712F3 #984DF6 #BA87F9 #DCC1FC #EEE2FE

Accessibility & contrast

On white

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

On black

7.92
#BA87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F9
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F9#FFFFFF#000000##000000
##BA87F91.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#679EFD
Deuteranopia (green-blind)
#739FF6
Tritanopia (blue-blind)
#AF9BB4
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87f9;
/* rgb */ color: rgb(186, 135, 249);
/* oklch */ color: oklch(71.9% 0.167 303.1);
Tailwind
colors: {
  custom: {
    50: '#d1abfc',
    500: '#ba87f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f9;
$custom-light: #d1abfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f9",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 266.842,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71906,
    "c": 0.16687,
    "h": 303.1
  },
  "luminance": 0.34607
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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