#BA87EF#BA87EF

#BA87EF is a light, vivid violet. Relative luminance 0.340; OKLCH L 71.4% C 0.155 H 305.4°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#BA87EF
RGBrgb(186, 135, 239)
HSLhsl(269, 76%, 73%)
HSVhsv(269, 44%, 94%)
CMYKcmyk(22.2%, 43.5%, 0%, 6.3%)
CIE-LABlab(64.96, 39.25, -45.19)
CIE-LCHlch(64.96, 59.85, 310.98°)
OKLaboklab(71.39% 0.0897 -0.126)
OKLCHoklch(71.39% 0.155 305.4)
XYZxyz(44.4905, 33.9993, 85.8633)
Luminance0.3400 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87EF #BCEF87
analogous
#8788EF #BA87EF #EE87EF
triadic
#BA87EF #EFBA87 #87EFBA
tetradic
#BA87EF #EF8788 #BCEF87 #87EFEE
square
#BA87EF #EF8788 #BCEF87 #87EFEE
split-complementary
#BA87EF #EFEE87 #88EF87
monochromatic
#7C1EDE #9B51E8 #BA87EF #D9BDF6 #EFE4FB

Accessibility & contrast

On white

2.69
#BA87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#BA87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87EF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87EF#FFFFFF#000000##000000
##BA87EF1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF3
Deuteranopia (green-blind)
#799EEC
Tritanopia (blue-blind)
#B298B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87ef;
/* rgb */ color: rgb(186, 135, 239);
/* oklch */ color: oklch(71.4% 0.155 305.4);
Tailwind
colors: {
  custom: {
    50: '#d0abf4',
    500: '#ba87ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba87ef;
$custom-light: #d0abf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87ef",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 269.423,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.7139,
    "c": 0.15468,
    "h": 305.4
  },
  "luminance": 0.33999
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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