#BA87DC#BA87DC

#BA87DC is a light, vivid violet. Relative luminance 0.329; OKLCH L 70.5% C 0.132 H 310.9°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#BA87DC
RGBrgb(186, 135, 220)
HSLhsl(276, 55%, 70%)
HSVhsv(276, 39%, 86%)
CMYKcmyk(15.5%, 38.6%, 0%, 13.7%)
CIE-LABlab(64.11, 35.03, -36.00)
CIE-LCHlch(64.11, 50.23, 314.21°)
OKLaboklab(70.47% 0.0862 -0.0995)
OKLCHoklch(70.47% 0.132 310.9)
XYZxyz(41.8297, 32.9350, 71.8498)
Luminance0.3293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87DC #A9DC87
analogous
#9087DC #BA87DC #DC87D4
triadic
#BA87DC #DCBA87 #87DCBA
tetradic
#BA87DC #DC9087 #A9DC87 #87D4DC
square
#BA87DC #DC9087 #A9DC87 #87D4DC
split-complementary
#BA87DC #D4DC87 #87DC90
monochromatic
#8135B4 #9F58CE #BA87DC #D5B6EA #F0E6F8

Accessibility & contrast

On white

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

On black

7.59
#BA87DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87DC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87DC#FFFFFF#000000##000000
##BA87DC1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7799DF
Deuteranopia (green-blind)
#839CDA
Tritanopia (blue-blind)
#B693A7
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #ba87dc;
/* rgb */ color: rgb(186, 135, 220);
/* oklch */ color: oklch(70.5% 0.132 310.9);
Tailwind
colors: {
  custom: {
    50: '#d0aae7',
    500: '#ba87dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba87dc;
$custom-light: #d0aae7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87dc",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 220
  },
  "hsl": {
    "h": 276,
    "s": 54.839,
    "l": 69.608
  },
  "oklch": {
    "l": 0.70467,
    "c": 0.13167,
    "h": 310.9
  },
  "luminance": 0.32934
}

Semantic roles & 50–950 ramp

primary
#BA87DC
secondary
#DDECD3
accent
#C22363
background
#FCFAFE
surface
#F9F4FC
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA87DC

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

Preview Lab → · Contrast checker → · Palette generator →

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