#BA87EA#BA87EA

#BA87EA is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.1% C 0.149 H 306.7°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#BA87EA
RGBrgb(186, 135, 234)
HSLhsl(271, 70%, 72%)
HSVhsv(271, 42%, 92%)
CMYKcmyk(20.5%, 42.3%, 0%, 8.2%)
CIE-LABlab(64.73, 38.12, -42.79)
CIE-LCHlch(64.73, 57.31, 311.69°)
OKLaboklab(71.14% 0.0889 -0.1191)
OKLCHoklch(71.14% 0.149 306.7)
XYZxyz(43.7620, 33.7079, 82.0268)
Luminance0.3371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87EA #B7EA87
analogous
#8887EA #BA87EA #EA87E9
triadic
#BA87EA #EABA87 #87EABA
tetradic
#BA87EA #EA8887 #B7EA87 #87E9EA
square
#BA87EA #EA8887 #B7EA87 #87E9EA
split-complementary
#BA87EA #E9EA87 #87EA88
monochromatic
#7E25D2 #9C53E1 #BA87EA #D8BBF3 #F0E5FA

Accessibility & contrast

On white

2.71
#BA87EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#BA87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87EA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87EA#FFFFFF#000000##000000
##BA87EA1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#709BEE
Deuteranopia (green-blind)
#7C9DE7
Tritanopia (blue-blind)
#B397AD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #ba87ea;
/* rgb */ color: rgb(186, 135, 234);
/* oklch */ color: oklch(71.1% 0.149 306.7);
Tailwind
colors: {
  custom: {
    50: '#d0abf1',
    500: '#ba87ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba87ea;
$custom-light: #d0abf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87ea",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 270.909,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.7114,
    "c": 0.14859,
    "h": 306.7
  },
  "luminance": 0.33708
}

Semantic roles & 50–950 ramp

primary
#BA87EA
secondary
#E5F2D9
accent
#D21370
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#141017
muted
#827F85

Preview Lab

Preview with #BA87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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