#BA87CA#BA87CA

#BA87CA is a light, moderate purple. Relative luminance 0.320; OKLCH L 69.7% C 0.111 H 317.9°. Best body text is #000000 at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#BA87CA
RGBrgb(186, 135, 202)
HSLhsl(286, 39%, 66%)
HSVhsv(286, 33%, 79%)
CMYKcmyk(7.9%, 33.2%, 0%, 20.8%)
CIE-LABlab(63.37, 31.25, -27.09)
CIE-LCHlch(63.37, 41.35, 319.07°)
OKLaboklab(69.66% 0.0821 -0.0741)
OKLCHoklch(69.66% 0.111 317.9)
XYZxyz(39.5728, 32.0323, 59.9639)
Luminance0.3203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87CA #97CA87
analogous
#9887CA #BA87CA #CA87B8
triadic
#BA87CA #CABA87 #87CABA
tetradic
#BA87CA #CA9887 #97CA87 #87B8CA
square
#BA87CA #CA9887 #97CA87 #87B8CA
split-complementary
#BA87CA #B8CA87 #87CA98
monochromatic
#814295 #A25DB7 #BA87CA #D2B1DD #EBDCEF

Accessibility & contrast

On white

2.84
#BA87CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.41
#BA87CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87CA
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87CA#FFFFFF#000000##000000
##BA87CA1.002.847.417.41
#FFFFFF2.841.0021.0021.00
#0000007.4121.001.001.00
##0000007.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E96CD
Deuteranopia (green-blind)
#8A9BC8
Tritanopia (blue-blind)
#BA8FA0
Achromatopsia (no color)
#999999

Design tokens & code

CSS
--color: #ba87ca;
/* rgb */ color: rgb(186, 135, 202);
/* oklch */ color: oklch(69.7% 0.111 317.9);
Tailwind
colors: {
  custom: {
    50: '#cfaada',
    500: '#ba87ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba87ca;
$custom-light: #cfaada;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87ca",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 202
  },
  "hsl": {
    "h": 285.672,
    "s": 38.728,
    "l": 66.078
  },
  "oklch": {
    "l": 0.69664,
    "c": 0.11054,
    "h": 317.9
  },
  "luminance": 0.32031
}

Semantic roles & 50–950 ramp

primary
#BA87CA
secondary
#D1E1CB
accent
#B23452
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#141015
muted
#827F83

Preview Lab

Preview with #BA87CA

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

Preview Lab → · Contrast checker → · Palette generator →

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