#BA87CB#BA87CB

#BA87CB is a light, moderate purple. Relative luminance 0.321; OKLCH L 69.7% C 0.112 H 317.5°. Best body text is #000000 at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#BA87CB
RGBrgb(186, 135, 203)
HSLhsl(285, 40%, 66%)
HSVhsv(285, 33%, 80%)
CMYKcmyk(8.4%, 33.5%, 0%, 20.4%)
CIE-LABlab(63.41, 31.45, -27.59)
CIE-LCHlch(63.41, 41.84, 318.74°)
OKLaboklab(69.71% 0.0823 -0.0755)
OKLCHoklch(69.71% 0.112 317.5)
XYZxyz(39.6916, 32.0798, 60.5895)
Luminance0.3208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87CB #98CB87
analogous
#9887CB #BA87CB #CB87BA
triadic
#BA87CB #CBBA87 #87CBBA
tetradic
#BA87CB #CB9887 #98CB87 #87BACB
square
#BA87CB #CB9887 #98CB87 #87BACB
split-complementary
#BA87CB #BACB87 #87CB98
monochromatic
#814196 #A15CB8 #BA87CB #D3B2DE #EBDCF0

Accessibility & contrast

On white

2.83
#BA87CB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.42
#BA87CB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87CB
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87CB#FFFFFF#000000##000000
##BA87CB1.002.837.427.42
#FFFFFF2.831.0021.0021.00
#0000007.4221.001.001.00
##0000007.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba87cb;
/* rgb */ color: rgb(186, 135, 203);
/* oklch */ color: oklch(69.7% 0.112 317.5);
Tailwind
colors: {
  custom: {
    50: '#cfaadb',
    500: '#ba87cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba87cb;
$custom-light: #cfaadb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87cb",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 285,
    "s": 39.535,
    "l": 66.275
  },
  "oklch": {
    "l": 0.69707,
    "c": 0.11169,
    "h": 317.5
  },
  "luminance": 0.32079
}

Semantic roles & 50–950 ramp

primary
#BA87CB
secondary
#D1E2CC
accent
#B33353
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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