#BA87FF#BA87FF

#BA87FF is a light, vivid violet. Relative luminance 0.350; OKLCH L 72.2% C 0.174 H 301.8°. Best body text is #000000 at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#BA87FF
RGBrgb(186, 135, 255)
HSLhsl(266, 100%, 76%)
HSVhsv(266, 47%, 100%)
CMYKcmyk(27.1%, 47.1%, 0%, 0%)
CIE-LABlab(65.74, 42.95, -52.74)
CIE-LCHlch(65.74, 68.02, 309.16°)
OKLaboklab(72.22% 0.0919 -0.148)
OKLCHoklch(72.22% 0.174 301.8)
XYZxyz(46.9596, 34.9870, 98.8675)
Luminance0.3499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87FF #CCFF87
analogous
#8790FF #BA87FF #F687FF
triadic
#BA87FF #FFBA87 #87FFBA
tetradic
#BA87FF #FF8790 #CCFF87 #87FFF6
square
#BA87FF #FF8790 #CCFF87 #87FFF6
split-complementary
#BA87FF #FFF687 #90FF87
monochromatic
#740DFF #974AFF #BA87FF #DDC4FF #EDE0FF

Accessibility & contrast

On white

2.63
#BA87FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.00
#BA87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87FF
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87FF#FFFFFF#000000##000000
##BA87FF1.002.638.008.00
#FFFFFF2.631.0021.0021.00
#0000008.0021.001.001.00
##0000008.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#639FFF
Deuteranopia (green-blind)
#709FFC
Tritanopia (blue-blind)
#AD9CB7
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba87ff;
/* rgb */ color: rgb(186, 135, 255);
/* oklch */ color: oklch(72.2% 0.174 301.8);
Tailwind
colors: {
  custom: {
    50: '#d1abff',
    500: '#ba87ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba87ff;
$custom-light: #d1abff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87ff",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 265.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.72225,
    "c": 0.17419,
    "h": 301.8
  },
  "luminance": 0.34987
}

Semantic roles & 50–950 ramp

primary
#BA87FF
secondary
#E8F7D4
accent
#E60084
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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