#BA87F7#BA87F7

#BA87F7 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.8% C 0.164 H 303.5°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#BA87F7
RGBrgb(186, 135, 247)
HSLhsl(267, 88%, 75%)
HSVhsv(267, 45%, 97%)
CMYKcmyk(24.7%, 45.3%, 0%, 3.1%)
CIE-LABlab(65.34, 41.08, -48.98)
CIE-LCHlch(65.34, 63.93, 309.99°)
OKLaboklab(71.8% 0.0909 -0.137)
OKLCHoklch(71.8% 0.164 303.5)
XYZxyz(45.6986, 34.4825, 92.2259)
Luminance0.3448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F7 #C4F787
analogous
#878CF7 #BA87F7 #F287F7
triadic
#BA87F7 #F7BA87 #87F7BA
tetradic
#BA87F7 #F7878C #C4F787 #87F7F2
square
#BA87F7 #F7878C #C4F787 #87F7F2
split-complementary
#BA87F7 #F7F287 #8CF787
monochromatic
#7814EF #994EF3 #BA87F7 #DBC0FB #EFE2FD

Accessibility & contrast

On white

2.66
#BA87F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.90
#BA87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F7
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F7#FFFFFF#000000##000000
##BA87F71.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#689DFB
Deuteranopia (green-blind)
#759FF4
Tritanopia (blue-blind)
#B09AB3
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87f7;
/* rgb */ color: rgb(186, 135, 247);
/* oklch */ color: oklch(71.8% 0.164 303.5);
Tailwind
colors: {
  custom: {
    50: '#d1abfa',
    500: '#ba87f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f7;
$custom-light: #d1abfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f7",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 267.321,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.71801,
    "c": 0.16443,
    "h": 303.5
  },
  "luminance": 0.34482
}

Semantic roles & 50–950 ramp

primary
#BA87F7
secondary
#E7F5D6
accent
#E4017D
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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