#BA87F1#BA87F1

#BA87F1 is a light, vivid violet. Relative luminance 0.341; OKLCH L 71.5% C 0.157 H 304.9°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#BA87F1
RGBrgb(186, 135, 241)
HSLhsl(269, 79%, 74%)
HSVhsv(269, 44%, 95%)
CMYKcmyk(22.8%, 44%, 0%, 5.5%)
CIE-LABlab(65.06, 39.70, -46.14)
CIE-LCHlch(65.06, 60.87, 310.71°)
OKLaboklab(71.49% 0.09 -0.1288)
OKLCHoklch(71.49% 0.157 304.9)
XYZxyz(44.7875, 34.1181, 87.4280)
Luminance0.3412 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F1 #BEF187
analogous
#8789F1 #BA87F1 #EF87F1
triadic
#BA87F1 #F1BA87 #87F1BA
tetradic
#BA87F1 #F18789 #BEF187 #87F1EF
square
#BA87F1 #F18789 #BEF187 #87F1EF
split-complementary
#BA87F1 #F1EF87 #89F187
monochromatic
#7B1AE3 #9A50EB #BA87F1 #DABEF7 #EFE4FC

Accessibility & contrast

On white

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

On black

7.82
#BA87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F1
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F1#FFFFFF#000000##000000
##BA87F11.002.687.827.82
#FFFFFF2.681.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba87f1;
/* rgb */ color: rgb(186, 135, 241);
/* oklch */ color: oklch(71.5% 0.157 304.9);
Tailwind
colors: {
  custom: {
    50: '#d1abf6',
    500: '#ba87f1',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f1;
$custom-light: #d1abf6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f1",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 268.868,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.71491,
    "c": 0.15711,
    "h": 304.9
  },
  "luminance": 0.34118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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