#BA87CC#BA87CC

#BA87CC is a light, moderate purple. Relative luminance 0.321; OKLCH L 69.8% C 0.113 H 317.0°. Best body text is #000000 at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#BA87CC
RGBrgb(186, 135, 204)
HSLhsl(284, 40%, 66%)
HSVhsv(284, 34%, 80%)
CMYKcmyk(8.8%, 33.8%, 0%, 20%)
CIE-LABlab(63.45, 31.65, -28.09)
CIE-LCHlch(63.45, 42.32, 318.41°)
OKLaboklab(69.75% 0.0826 -0.0769)
OKLCHoklch(69.75% 0.113 317)
XYZxyz(39.8112, 32.1276, 61.2191)
Luminance0.3213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87CC #99CC87
analogous
#9887CC #BA87CC #CC87BC
triadic
#BA87CC #CCBA87 #87CCBA
tetradic
#BA87CC #CC9887 #99CC87 #87BCCC
square
#BA87CC #CC9887 #99CC87 #87BCCC
split-complementary
#BA87CC #BCCC87 #87CC98
monochromatic
#814198 #A15CBA #BA87CC #D3B2DE #EBDDF1

Accessibility & contrast

On white

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

On black

7.43
#BA87CC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87CC
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87CC#FFFFFF#000000##000000
##BA87CC1.002.837.437.43
#FFFFFF2.831.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D96CF
Deuteranopia (green-blind)
#899BCA
Tritanopia (blue-blind)
#BA8FA0
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba87cc;
/* rgb */ color: rgb(186, 135, 204);
/* oklch */ color: oklch(69.8% 0.113 317.0);
Tailwind
colors: {
  custom: {
    50: '#cfaadb',
    500: '#ba87cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba87cc;
$custom-light: #cfaadb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87cc",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 204
  },
  "hsl": {
    "h": 284.348,
    "s": 40.351,
    "l": 66.471
  },
  "oklch": {
    "l": 0.6975,
    "c": 0.11284,
    "h": 317
  },
  "luminance": 0.32127
}

Semantic roles & 50–950 ramp

primary
#BA87CC
secondary
#D2E3CC
accent
#B33254
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA87CC

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

Preview Lab → · Contrast checker → · Palette generator →

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