#BA86FA#BA86FA

#BA86FA is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.8% C 0.170 H 303.1°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#BA86FA
RGBrgb(186, 134, 250)
HSLhsl(267, 92%, 75%)
HSVhsv(267, 46%, 98%)
CMYKcmyk(25.6%, 46.4%, 0%, 2%)
CIE-LABlab(65.27, 42.33, -50.74)
CIE-LCHlch(65.27, 66.08, 309.83°)
OKLaboklab(71.8% 0.0926 -0.1422)
OKLCHoklch(71.8% 0.17 303.1)
XYZxyz(46.0263, 34.3915, 94.6374)
Luminance0.3439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86FA #C6FA86
analogous
#868CFA #BA86FA #F486FA
triadic
#BA86FA #FABA86 #86FABA
tetradic
#BA86FA #FA868C #C6FA86 #86FAF4
square
#BA86FA #FA868C #C6FA86 #86FAF4
split-complementary
#BA86FA #FAF486 #8CFA86
monochromatic
#7710F5 #984BF8 #BA86FA #DCC1FC #EEE2FE

Accessibility & contrast

On white

2.67
#BA86FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#BA86FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86FA
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86FA#FFFFFF#000000##000000
##BA86FA1.002.677.887.88
#FFFFFF2.671.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFE
Deuteranopia (green-blind)
#729EF7
Tritanopia (blue-blind)
#AF9AB4
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba86fa;
/* rgb */ color: rgb(186, 134, 250);
/* oklch */ color: oklch(71.8% 0.170 303.1);
Tailwind
colors: {
  custom: {
    50: '#d1aafc',
    500: '#ba86fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba86fa;
$custom-light: #d1aafc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86fa",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 250
  },
  "hsl": {
    "h": 266.897,
    "s": 92.063,
    "l": 75.294
  },
  "oklch": {
    "l": 0.71795,
    "c": 0.16965,
    "h": 303.1
  },
  "luminance": 0.34391
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA86FA

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

Preview Lab → · Contrast checker → · Palette generator →

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