#BA87EE#BA87EE

#BA87EE is a light, vivid violet. Relative luminance 0.339; OKLCH L 71.3% C 0.153 H 305.7°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#BA87EE
RGBrgb(186, 135, 238)
HSLhsl(270, 75%, 73%)
HSVhsv(270, 43%, 93%)
CMYKcmyk(21.8%, 43.3%, 0%, 6.7%)
CIE-LABlab(64.92, 39.02, -44.71)
CIE-LCHlch(64.92, 59.34, 311.11°)
OKLaboklab(71.34% 0.0895 -0.1246)
OKLCHoklch(71.34% 0.153 305.7)
XYZxyz(44.3431, 33.9404, 85.0874)
Luminance0.3394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87EE #BBEE87
analogous
#8787EE #BA87EE #ED87EE
triadic
#BA87EE #EEBA87 #87EEBA
tetradic
#BA87EE #EE8787 #BBEE87 #87EEED
square
#BA87EE #EE8787 #BBEE87 #87EEED
split-complementary
#BA87EE #EEED87 #87EE87
monochromatic
#7C1FDC #9B51E6 #BA87EE #D9BDF6 #F0E4FB

Accessibility & contrast

On white

2.70
#BA87EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#BA87EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87EE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87EE#FFFFFF#000000##000000
##BA87EE1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E9CF2
Deuteranopia (green-blind)
#7A9EEB
Tritanopia (blue-blind)
#B298AF
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba87ee;
/* rgb */ color: rgb(186, 135, 238);
/* oklch */ color: oklch(71.3% 0.153 305.7);
Tailwind
colors: {
  custom: {
    50: '#d0abf4',
    500: '#ba87ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba87ee;
$custom-light: #d0abf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87ee",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 269.709,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.71339,
    "c": 0.15345,
    "h": 305.7
  },
  "luminance": 0.3394
}

Semantic roles & 50–950 ramp

primary
#BA87EE
secondary
#E6F3D8
accent
#D70E74
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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