#BA87DE#BA87DE

#BA87DE is a light, vivid violet. Relative luminance 0.330; OKLCH L 70.6% C 0.134 H 310.3°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#BA87DE
RGBrgb(186, 135, 222)
HSLhsl(275, 57%, 70%)
HSVhsv(275, 39%, 87%)
CMYKcmyk(16.2%, 39.2%, 0%, 12.9%)
CIE-LABlab(64.19, 35.46, -36.98)
CIE-LCHlch(64.19, 51.24, 313.80°)
OKLaboklab(70.56% 0.0866 -0.1023)
OKLCHoklch(70.56% 0.134 310.3)
XYZxyz(42.0961, 33.0416, 73.2531)
Luminance0.3304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87DE #ABDE87
analogous
#8E87DE #BA87DE #DE87D7
triadic
#BA87DE #DEBA87 #87DEBA
tetradic
#BA87DE #DE8E87 #ABDE87 #87D7DE
square
#BA87DE #DE8E87 #ABDE87 #87D7DE
split-complementary
#BA87DE #D7DE87 #87DE8E
monochromatic
#8133B8 #9E57D1 #BA87DE #D6B7EB #F1E7F8

Accessibility & contrast

On white

2.76
#BA87DE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#BA87DE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87DE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87DE#FFFFFF#000000##000000
##BA87DE1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7699E1
Deuteranopia (green-blind)
#829DDC
Tritanopia (blue-blind)
#B694A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba87de;
/* rgb */ color: rgb(186, 135, 222);
/* oklch */ color: oklch(70.6% 0.134 310.3);
Tailwind
colors: {
  custom: {
    50: '#d0abe8',
    500: '#ba87de',
    950: '#000000',
  },
}
SCSS
$custom: #ba87de;
$custom-light: #d0abe8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87de",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 222
  },
  "hsl": {
    "h": 275.172,
    "s": 56.863,
    "l": 70
  },
  "oklch": {
    "l": 0.70561,
    "c": 0.13407,
    "h": 310.3
  },
  "luminance": 0.33041
}

Semantic roles & 50–950 ramp

primary
#BA87DE
secondary
#DEEDD4
accent
#C42165
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA87DE

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

Preview Lab → · Contrast checker → · Palette generator →

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