#BA87CD#BA87CD

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

Color values

HEX#BA87CD
RGBrgb(186, 135, 205)
HSLhsl(284, 41%, 67%)
HSVhsv(284, 34%, 80%)
CMYKcmyk(9.3%, 34.1%, 0%, 19.6%)
CIE-LABlab(63.49, 31.86, -28.59)
CIE-LCHlch(63.49, 42.81, 318.10°)
OKLaboklab(69.79% 0.0828 -0.0783)
OKLCHoklch(69.79% 0.114 316.6)
XYZxyz(39.9315, 32.1757, 61.8528)
Luminance0.3217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87CD #9ACD87
analogous
#9787CD #BA87CD #CD87BD
triadic
#BA87CD #CDBA87 #87CDBA
tetradic
#BA87CD #CD9787 #9ACD87 #87BDCD
square
#BA87CD #CD9787 #9ACD87 #87BDCD
split-complementary
#BA87CD #BDCD87 #87CD97
monochromatic
#81409A #A15CBB #BA87CD #D3B2DF #ECDDF1

Accessibility & contrast

On white

2.82
#BA87CD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA87CD#FFFFFF#000000##000000
##BA87CD1.002.827.437.43
#FFFFFF2.821.0021.0021.00
#0000007.4321.001.001.00
##0000007.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D97D0
Deuteranopia (green-blind)
#899BCB
Tritanopia (blue-blind)
#BA90A1
Achromatopsia (no color)
#9A9A9A

Design tokens & code

CSS
--color: #ba87cd;
/* rgb */ color: rgb(186, 135, 205);
/* oklch */ color: oklch(69.8% 0.114 316.6);
Tailwind
colors: {
  custom: {
    50: '#cfaadc',
    500: '#ba87cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba87cd;
$custom-light: #cfaadc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87cd",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 205
  },
  "hsl": {
    "h": 283.714,
    "s": 41.176,
    "l": 66.667
  },
  "oklch": {
    "l": 0.69793,
    "c": 0.11399,
    "h": 316.6
  },
  "luminance": 0.32175
}

Semantic roles & 50–950 ramp

primary
#BA87CD
secondary
#D3E3CD
accent
#B43155
background
#FCFAFD
surface
#F9F4FB
border
#D2CED4
text
#141015
muted
#827F83

Preview Lab

Preview with #BA87CD

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

Preview Lab → · Contrast checker → · Palette generator →

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