#BA86FF#BA86FF

#BA86FF is a light, vivid violet. Relative luminance 0.347; OKLCH L 72.1% C 0.176 H 302.0°. Best body text is #000000 at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#BA86FF
RGBrgb(186, 134, 255)
HSLhsl(266, 100%, 76%)
HSVhsv(266, 47%, 100%)
CMYKcmyk(27.1%, 47.5%, 0%, 0%)
CIE-LABlab(65.52, 43.50, -53.08)
CIE-LCHlch(65.52, 68.63, 309.33°)
OKLaboklab(72.06% 0.0932 -0.149)
OKLCHoklch(72.06% 0.176 302)
XYZxyz(46.8207, 34.7092, 98.8213)
Luminance0.3471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86FF #CBFF86
analogous
#868FFF #BA86FF #F686FF
triadic
#BA86FF #FFBA86 #86FFBA
tetradic
#BA86FF #FF868F #CBFF86 #86FFF6
square
#BA86FF #FF868F #CBFF86 #86FFF6
split-complementary
#BA86FF #FFF686 #8FFF86
monochromatic
#740CFF #9749FF #BA86FF #DDC3FF #EEE0FF

Accessibility & contrast

On white

2.64
#BA86FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.94
#BA86FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86FF
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86FF#FFFFFF#000000##000000
##BA86FF1.002.647.947.94
#FFFFFF2.641.0021.0021.00
#0000007.9421.001.001.00
##0000007.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#629EFF
Deuteranopia (green-blind)
#6F9FFC
Tritanopia (blue-blind)
#AD9CB7
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba86ff;
/* rgb */ color: rgb(186, 134, 255);
/* oklch */ color: oklch(72.1% 0.176 302.0);
Tailwind
colors: {
  custom: {
    50: '#d1aaff',
    500: '#ba86ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba86ff;
$custom-light: #d1aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86ff",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 255
  },
  "hsl": {
    "h": 265.785,
    "s": 100,
    "l": 76.275
  },
  "oklch": {
    "l": 0.72063,
    "c": 0.17573,
    "h": 302
  },
  "luminance": 0.34709
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA86FF

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

Preview Lab → · Contrast checker → · Palette generator →

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