#BA87DB#BA87DB

#BA87DB is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.4% C 0.130 H 311.2°. Best body text is #000000 at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#BA87DB
RGBrgb(186, 135, 219)
HSLhsl(276, 54%, 69%)
HSVhsv(276, 38%, 86%)
CMYKcmyk(15.1%, 38.4%, 0%, 14.1%)
CIE-LABlab(64.07, 34.81, -35.51)
CIE-LCHlch(64.07, 49.73, 314.43°)
OKLaboklab(70.42% 0.086 -0.0981)
OKLCHoklch(70.42% 0.13 311.2)
XYZxyz(41.6976, 32.8822, 71.1544)
Luminance0.3288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87DB #A8DB87
analogous
#9087DB #BA87DB #DB87D2
triadic
#BA87DB #DBBA87 #87DBBA
tetradic
#BA87DB #DB9087 #A8DB87 #87D2DB
square
#BA87DB #DB9087 #A8DB87 #87D2DB
split-complementary
#BA87DB #D2DB87 #87DB90
monochromatic
#8135B2 #9F58CD #BA87DB #D5B6E9 #F0E5F7

Accessibility & contrast

On white

2.77
#BA87DB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.58
#BA87DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87DB
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87DB#FFFFFF#000000##000000
##BA87DB1.002.777.587.58
#FFFFFF2.771.0021.0021.00
#0000007.5821.001.001.00
##0000007.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7799DE
Deuteranopia (green-blind)
#839CD9
Tritanopia (blue-blind)
#B793A7
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba87db;
/* rgb */ color: rgb(186, 135, 219);
/* oklch */ color: oklch(70.4% 0.130 311.2);
Tailwind
colors: {
  custom: {
    50: '#d0aae6',
    500: '#ba87db',
    950: '#000000',
  },
}
SCSS
$custom: #ba87db;
$custom-light: #d0aae6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87db",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 219
  },
  "hsl": {
    "h": 276.429,
    "s": 53.846,
    "l": 69.412
  },
  "oklch": {
    "l": 0.70421,
    "c": 0.13048,
    "h": 311.2
  },
  "luminance": 0.32882
}

Semantic roles & 50–950 ramp

primary
#BA87DB
secondary
#DCEBD3
accent
#C12462
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA87DB

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

Preview Lab → · Contrast checker → · Palette generator →

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