#BA87F8#BA87F8

#BA87F8 is a light, vivid violet. Relative luminance 0.345; OKLCH L 71.9% C 0.166 H 303.3°. Best body text is #000000 at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#BA87F8
RGBrgb(186, 135, 248)
HSLhsl(267, 89%, 75%)
HSVhsv(267, 46%, 97%)
CMYKcmyk(25%, 45.6%, 0%, 2.7%)
CIE-LABlab(65.39, 41.32, -49.46)
CIE-LCHlch(65.39, 64.44, 309.88°)
OKLaboklab(71.85% 0.091 -0.1384)
OKLCHoklch(71.85% 0.166 303.3)
XYZxyz(45.8533, 34.5444, 93.0408)
Luminance0.3454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F8 #C5F887
analogous
#878CF8 #BA87F8 #F387F8
triadic
#BA87F8 #F8BA87 #87F8BA
tetradic
#BA87F8 #F8878C #C5F887 #87F8F3
square
#BA87F8 #F8878C #C5F887 #87F8F3
split-complementary
#BA87F8 #F8F387 #8CF887
monochromatic
#7813F1 #994DF5 #BA87F8 #DBC1FB #EEE2FD

Accessibility & contrast

On white

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

On black

7.91
#BA87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F8
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F8#FFFFFF#000000##000000
##BA87F81.002.667.917.91
#FFFFFF2.661.0021.0021.00
#0000007.9121.001.001.00
##0000007.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#689EFC
Deuteranopia (green-blind)
#749FF5
Tritanopia (blue-blind)
#AF9BB4
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87f8;
/* rgb */ color: rgb(186, 135, 248);
/* oklch */ color: oklch(71.9% 0.166 303.3);
Tailwind
colors: {
  custom: {
    50: '#d1abfb',
    500: '#ba87f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f8;
$custom-light: #d1abfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f8",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 267.08,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.71853,
    "c": 0.16565,
    "h": 303.3
  },
  "luminance": 0.34544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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