#BA86FD#BA86FD

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

Color values

HEX#BA86FD
RGBrgb(186, 134, 253)
HSLhsl(266, 97%, 76%)
HSVhsv(266, 47%, 99%)
CMYKcmyk(26.5%, 47%, 0%, 0.8%)
CIE-LABlab(65.42, 43.03, -52.15)
CIE-LCHlch(65.42, 67.61, 309.53°)
OKLaboklab(71.96% 0.093 -0.1463)
OKLCHoklch(71.96% 0.173 302.4)
XYZxyz(46.5005, 34.5811, 97.1345)
Luminance0.3458 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86FD #C9FD86
analogous
#868DFD #BA86FD #F586FD
triadic
#BA86FD #FDBA86 #86FDBA
tetradic
#BA86FD #FD868D #C9FD86 #86FDF5
square
#BA86FD #FD868D #C9FD86 #86FDF5
split-complementary
#BA86FD #FDF586 #8DFD86
monochromatic
#750EFB #984AFC #BA86FD #DCC2FE #EEE1FF

Accessibility & contrast

On white

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

On black

7.92
#BA86FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86FD
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86FD#FFFFFF#000000##000000
##BA86FD1.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#639EFF
Deuteranopia (green-blind)
#709FFA
Tritanopia (blue-blind)
#AE9BB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba86fd;
/* rgb */ color: rgb(186, 134, 253);
/* oklch */ color: oklch(72.0% 0.173 302.4);
Tailwind
colors: {
  custom: {
    50: '#d1aafe',
    500: '#ba86fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba86fd;
$custom-light: #d1aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86fd",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 253
  },
  "hsl": {
    "h": 266.218,
    "s": 96.748,
    "l": 75.882
  },
  "oklch": {
    "l": 0.71955,
    "c": 0.1733,
    "h": 302.4
  },
  "luminance": 0.34581
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA86FD

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

Preview Lab → · Contrast checker → · Palette generator →

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