#BA87E2#BA87E2

#BA87E2 is a light, vivid violet. Relative luminance 0.333; OKLCH L 70.8% C 0.139 H 309.0°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#BA87E2
RGBrgb(186, 135, 226)
HSLhsl(274, 61%, 71%)
HSVhsv(274, 40%, 89%)
CMYKcmyk(17.7%, 40.3%, 0%, 11.4%)
CIE-LABlab(64.37, 36.34, -38.93)
CIE-LCHlch(64.37, 53.25, 313.03°)
OKLaboklab(70.75% 0.0874 -0.1079)
OKLCHoklch(70.75% 0.139 309)
XYZxyz(42.6386, 33.2586, 76.1101)
Luminance0.3326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87E2 #AFE287
analogous
#8C87E2 #BA87E2 #E287DD
triadic
#BA87E2 #E2BA87 #87E2BA
tetradic
#BA87E2 #E28C87 #AFE287 #87DDE2
square
#BA87E2 #E28C87 #AFE287 #87DDE2
split-complementary
#BA87E2 #DDE287 #87E28C
monochromatic
#802EC0 #9E56D6 #BA87E2 #D6B8EE #F1E6F9

Accessibility & contrast

On white

2.74
#BA87E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#BA87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87E2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87E2#FFFFFF#000000##000000
##BA87E21.002.747.657.65
#FFFFFF2.741.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#749AE5
Deuteranopia (green-blind)
#809DDF
Tritanopia (blue-blind)
#B595AA
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #ba87e2;
/* rgb */ color: rgb(186, 135, 226);
/* oklch */ color: oklch(70.8% 0.139 309.0);
Tailwind
colors: {
  custom: {
    50: '#d0abeb',
    500: '#ba87e2',
    950: '#000000',
  },
}
SCSS
$custom: #ba87e2;
$custom-light: #d0abeb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87e2",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 273.626,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7075,
    "c": 0.1389,
    "h": 309
  },
  "luminance": 0.33258
}

Semantic roles & 50–950 ramp

primary
#BA87E2
secondary
#E1EFD6
accent
#C91D68
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141016
muted
#827F84

Preview Lab

Preview with #BA87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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