#BA86FE#BA86FE

#BA86FE is a light, vivid violet. Relative luminance 0.346; OKLCH L 72.0% C 0.175 H 302.2°. Best body text is #000000 at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#BA86FE
RGBrgb(186, 134, 254)
HSLhsl(266, 98%, 76%)
HSVhsv(266, 47%, 100%)
CMYKcmyk(26.8%, 47.2%, 0%, 0.4%)
CIE-LABlab(65.47, 43.26, -52.62)
CIE-LCHlch(65.47, 68.12, 309.43°)
OKLaboklab(72.01% 0.0931 -0.1476)
OKLCHoklch(72.01% 0.175 302.2)
XYZxyz(46.6602, 34.6450, 97.9757)
Luminance0.3464 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86FE #CAFE86
analogous
#868EFE #BA86FE #F686FE
triadic
#BA86FE #FEBA86 #86FEBA
tetradic
#BA86FE #FE868E #CAFE86 #86FEF6
square
#BA86FE #FE868E #CAFE86 #86FEF6
split-complementary
#BA86FE #FEF686 #8EFE86
monochromatic
#750DFD #9749FD #BA86FE #DDC3FF #EEE1FF

Accessibility & contrast

On white

2.65
#BA86FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.93
#BA86FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86FE
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86FE#FFFFFF#000000##000000
##BA86FE1.002.657.937.93
#FFFFFF2.651.0021.0021.00
#0000007.9321.001.001.00
##0000007.9321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba86fe;
/* rgb */ color: rgb(186, 134, 254);
/* oklch */ color: oklch(72.0% 0.175 302.2);
Tailwind
colors: {
  custom: {
    50: '#d1aaff',
    500: '#ba86fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba86fe;
$custom-light: #d1aaff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86fe",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 266,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72009,
    "c": 0.17451,
    "h": 302.2
  },
  "luminance": 0.34645
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA86FE

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

Preview Lab → · Contrast checker → · Palette generator →

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