#BA86EC#BA86EC

#BA86EC is a light, vivid violet. Relative luminance 0.335; OKLCH L 71.1% C 0.153 H 306.4°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#BA86EC
RGBrgb(186, 134, 236)
HSLhsl(271, 73%, 73%)
HSVhsv(271, 43%, 93%)
CMYKcmyk(21.2%, 43.2%, 0%, 7.5%)
CIE-LABlab(64.60, 39.12, -44.10)
CIE-LCHlch(64.60, 58.95, 311.57°)
OKLaboklab(71.07% 0.0906 -0.1229)
OKLCHoklch(71.07% 0.153 306.4)
XYZxyz(43.9121, 33.5458, 83.5023)
Luminance0.3355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA86EC #B8EC86
analogous
#8786EC #BA86EC #EC86EB
triadic
#BA86EC #ECBA86 #86ECBA
tetradic
#BA86EC #EC8786 #B8EC86 #86EBEC
square
#BA86EC #EC8786 #B8EC86 #86EBEC
split-complementary
#BA86EC #EBEC86 #86EC87
monochromatic
#7E22D6 #9C51E4 #BA86EC #D8BBF4 #F0E5FB

Accessibility & contrast

On white

2.72
#BA86EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#BA86EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA86EC
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA86EC#FFFFFF#000000##000000
##BA86EC1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9BF0
Deuteranopia (green-blind)
#7A9DE9
Tritanopia (blue-blind)
#B396AE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba86ec;
/* rgb */ color: rgb(186, 134, 236);
/* oklch */ color: oklch(71.1% 0.153 306.4);
Tailwind
colors: {
  custom: {
    50: '#d0aaf2',
    500: '#ba86ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba86ec;
$custom-light: #d0aaf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba86ec",
  "rgb": {
    "r": 186,
    "g": 134,
    "b": 236
  },
  "hsl": {
    "h": 270.588,
    "s": 72.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71072,
    "c": 0.15266,
    "h": 306.4
  },
  "luminance": 0.33545
}

Semantic roles & 50–950 ramp

primary
#BA86EC
secondary
#E5F3D8
accent
#D51171
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA86EC

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

Preview Lab → · Contrast checker → · Palette generator →

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