#BA87F2#BA87F2

#BA87F2 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.5% C 0.158 H 304.7°. Best body text is #000000 at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#BA87F2
RGBrgb(186, 135, 242)
HSLhsl(269, 80%, 74%)
HSVhsv(269, 44%, 95%)
CMYKcmyk(23.1%, 44.2%, 0%, 5.1%)
CIE-LABlab(65.10, 39.93, -46.62)
CIE-LCHlch(65.10, 61.38, 310.58°)
OKLaboklab(71.54% 0.0901 -0.1302)
OKLCHoklch(71.54% 0.158 304.7)
XYZxyz(44.9373, 34.1781, 88.2168)
Luminance0.3418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F2 #BFF287
analogous
#878AF2 #BA87F2 #EF87F2
triadic
#BA87F2 #F2BA87 #87F2BA
tetradic
#BA87F2 #F2878A #BFF287 #87F2EF
square
#BA87F2 #F2878A #BFF287 #87F2EF
split-complementary
#BA87F2 #F2EF87 #8AF287
monochromatic
#7B19E6 #9A50EC #BA87F2 #DABEF8 #EFE3FC

Accessibility & contrast

On white

2.68
#BA87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.84
#BA87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F2
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F2#FFFFFF#000000##000000
##BA87F21.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9DF6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#B199B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87f2;
/* rgb */ color: rgb(186, 135, 242);
/* oklch */ color: oklch(71.5% 0.158 304.7);
Tailwind
colors: {
  custom: {
    50: '#d1abf7',
    500: '#ba87f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f2;
$custom-light: #d1abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f2",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 268.598,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.71542,
    "c": 0.15833,
    "h": 304.7
  },
  "luminance": 0.34178
}

Semantic roles & 50–950 ramp

primary
#BA87F2
secondary
#E6F4D7
accent
#DD0978
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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