#BA86EF#BA86EF

#BA86EF is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.2% C 0.156 H 305.6°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#BA86EF
RGBrgb(186, 134, 239)
HSLhsl(270, 77%, 73%)
HSVhsv(270, 44%, 94%)
CMYKcmyk(22.2%, 43.9%, 0%, 6.3%)
CIE-LABlab(64.74, 39.80, -45.53)
CIE-LCHlch(64.74, 60.47, 311.15°)
OKLaboklab(71.22% 0.0911 -0.127)
OKLCHoklch(71.22% 0.156 305.6)
XYZxyz(44.3516, 33.7216, 85.8170)
Luminance0.3372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86EF #BBEF86
analogous
#8686EF #BA86EF #EE86EF
triadic
#BA86EF #EFBA86 #86EFBA
tetradic
#BA86EF #EF8686 #BBEF86 #86EFEE
square
#BA86EF #EF8686 #BBEF86 #86EFEE
split-complementary
#BA86EF #EFEE86 #86EF86
monochromatic
#7C1DDD #9B50E8 #BA86EF #D9BCF6 #F0E4FB

Accessibility & contrast

On white

2.71
#BA86EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#BA86EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86EF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86EF#FFFFFF#000000##000000
##BA86EF1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9BF3
Deuteranopia (green-blind)
#789DEC
Tritanopia (blue-blind)
#B297AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba86ef;
/* rgb */ color: rgb(186, 134, 239);
/* oklch */ color: oklch(71.2% 0.156 305.6);
Tailwind
colors: {
  custom: {
    50: '#d1aaf4',
    500: '#ba86ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba86ef;
$custom-light: #d1aaf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86ef",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 269.714,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71224,
    "c": 0.15629,
    "h": 305.6
  },
  "luminance": 0.33721
}

Semantic roles & 50–950 ramp

primary
#BA86EF
secondary
#E6F3D8
accent
#D90D74
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA86EF

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

Preview Lab → · Contrast checker → · Palette generator →

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