#BA87DF#BA87DF

#BA87DF is a light, vivid violet. Relative luminance 0.331; OKLCH L 70.6% C 0.135 H 309.9°. Best body text is #000000 at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#BA87DF
RGBrgb(186, 135, 223)
HSLhsl(275, 58%, 70%)
HSVhsv(275, 39%, 87%)
CMYKcmyk(16.6%, 39.5%, 0%, 12.5%)
CIE-LABlab(64.24, 35.68, -37.47)
CIE-LCHlch(64.24, 51.74, 313.60°)
OKLaboklab(70.61% 0.0868 -0.1037)
OKLCHoklch(70.61% 0.135 309.9)
XYZxyz(42.2305, 33.0953, 73.9611)
Luminance0.3310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87DF #ACDF87
analogous
#8E87DF #BA87DF #DF87D8
triadic
#BA87DF #DFBA87 #87DFBA
tetradic
#BA87DF #DF8E87 #ACDF87 #87D8DF
square
#BA87DF #DF8E87 #ACDF87 #87D8DF
split-complementary
#BA87DF #D8DF87 #87DF8E
monochromatic
#8132BA #9E57D2 #BA87DF #D6B7EC #F1E7F9

Accessibility & contrast

On white

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

On black

7.62
#BA87DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87DF
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87DF#FFFFFF#000000##000000
##BA87DF1.002.767.627.62
#FFFFFF2.761.0021.0021.00
#0000007.6221.001.001.00
##0000007.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7599E2
Deuteranopia (green-blind)
#819DDD
Tritanopia (blue-blind)
#B694A8
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba87df;
/* rgb */ color: rgb(186, 135, 223);
/* oklch */ color: oklch(70.6% 0.135 309.9);
Tailwind
colors: {
  custom: {
    50: '#d0abe9',
    500: '#ba87df',
    950: '#000000',
  },
}
SCSS
$custom: #ba87df;
$custom-light: #d0abe9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87df",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 223
  },
  "hsl": {
    "h": 274.773,
    "s": 57.895,
    "l": 70.196
  },
  "oklch": {
    "l": 0.70608,
    "c": 0.13528,
    "h": 309.9
  },
  "luminance": 0.33095
}

Semantic roles & 50–950 ramp

primary
#BA87DF
secondary
#DFEDD5
accent
#C52066
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA87DF

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

Preview Lab → · Contrast checker → · Palette generator →

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