#BA87F0#BA87F0

#BA87F0 is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.4% C 0.156 H 305.2°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#BA87F0
RGBrgb(186, 135, 240)
HSLhsl(269, 78%, 74%)
HSVhsv(269, 44%, 94%)
CMYKcmyk(22.5%, 43.8%, 0%, 5.9%)
CIE-LABlab(65.01, 39.47, -45.66)
CIE-LCHlch(65.01, 60.36, 310.84°)
OKLaboklab(71.44% 0.0899 -0.1274)
OKLCHoklch(71.44% 0.156 305.2)
XYZxyz(44.6386, 34.0586, 86.6435)
Luminance0.3406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F0 #BDF087
analogous
#8788F0 #BA87F0 #EF87F0
triadic
#BA87F0 #F0BA87 #87F0BA
tetradic
#BA87F0 #F08788 #BDF087 #87F0EF
square
#BA87F0 #F08788 #BDF087 #87F0EF
split-complementary
#BA87F0 #F0EF87 #88F087
monochromatic
#7B1CE1 #9B51E9 #BA87F0 #D9BDF7 #EFE4FC

Accessibility & contrast

On white

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

On black

7.81
#BA87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F0
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F0#FFFFFF#000000##000000
##BA87F01.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF4
Deuteranopia (green-blind)
#799EED
Tritanopia (blue-blind)
#B198B0
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87f0;
/* rgb */ color: rgb(186, 135, 240);
/* oklch */ color: oklch(71.4% 0.156 305.2);
Tailwind
colors: {
  custom: {
    50: '#d1abf5',
    500: '#ba87f0',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f0;
$custom-light: #d1abf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f0",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 269.143,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.7144,
    "c": 0.1559,
    "h": 305.2
  },
  "luminance": 0.34058
}

Semantic roles & 50–950 ramp

primary
#BA87F0
secondary
#E6F3D8
accent
#DA0B76
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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