#BA86FC#BA86FC

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

Color values

HEX#BA86FC
RGBrgb(186, 134, 252)
HSLhsl(266, 95%, 76%)
HSVhsv(266, 47%, 99%)
CMYKcmyk(26.2%, 46.8%, 0%, 1.2%)
CIE-LABlab(65.37, 42.79, -51.68)
CIE-LCHlch(65.37, 67.10, 309.63°)
OKLaboklab(71.9% 0.0928 -0.1449)
OKLCHoklch(71.9% 0.172 302.6)
XYZxyz(46.3416, 34.5176, 96.2977)
Luminance0.3452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86FC #C8FC86
analogous
#868DFC #BA86FC #F586FC
triadic
#BA86FC #FCBA86 #86FCBA
tetradic
#BA86FC #FC868D #C8FC86 #86FCF5
square
#BA86FC #FC868D #C8FC86 #86FCF5
split-complementary
#BA86FC #FCF586 #8DFC86
monochromatic
#760FF9 #984AFB #BA86FC #DCC2FD #EEE1FE

Accessibility & contrast

On white

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

On black

7.90
#BA86FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86FC
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86FC#FFFFFF#000000##000000
##BA86FC1.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#719EF9
Tritanopia (blue-blind)
#AE9BB5
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba86fc;
/* rgb */ color: rgb(186, 134, 252);
/* oklch */ color: oklch(71.9% 0.172 302.6);
Tailwind
colors: {
  custom: {
    50: '#d1aafe',
    500: '#ba86fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba86fc;
$custom-light: #d1aafe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86fc",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 252
  },
  "hsl": {
    "h": 266.441,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.71902,
    "c": 0.17209,
    "h": 302.6
  },
  "luminance": 0.34518
}

Semantic roles & 50–950 ramp

primary
#BA86FC
secondary
#E8F6D5
accent
#E60080
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA86FC

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

Preview Lab → · Contrast checker → · Palette generator →

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