#BA87F5#BA87F5

#BA87F5 is a light, vivid violet. Relative luminance 0.344; OKLCH L 71.7% C 0.162 H 304.0°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#BA87F5
RGBrgb(186, 135, 245)
HSLhsl(268, 85%, 75%)
HSVhsv(268, 45%, 96%)
CMYKcmyk(24.1%, 44.9%, 0%, 3.9%)
CIE-LABlab(65.25, 40.62, -48.04)
CIE-LCHlch(65.25, 62.91, 310.22°)
OKLaboklab(71.7% 0.0906 -0.1343)
OKLCHoklch(71.7% 0.162 304)
XYZxyz(45.3916, 34.3598, 90.6093)
Luminance0.3436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F5 #C2F587
analogous
#878BF5 #BA87F5 #F187F5
triadic
#BA87F5 #F5BA87 #87F5BA
tetradic
#BA87F5 #F5878B #C2F587 #87F5F1
square
#BA87F5 #F5878B #C2F587 #87F5F1
split-complementary
#BA87F5 #F5F187 #8BF587
monochromatic
#7916EC #9A4FF0 #BA87F5 #DABFFA #EFE3FD

Accessibility & contrast

On white

2.67
#BA87F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.87
#BA87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F5
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F5#FFFFFF#000000##000000
##BA87F51.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9DF9
Deuteranopia (green-blind)
#769EF2
Tritanopia (blue-blind)
#B09AB2
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87f5;
/* rgb */ color: rgb(186, 135, 245);
/* oklch */ color: oklch(71.7% 0.162 304.0);
Tailwind
colors: {
  custom: {
    50: '#d1abf9',
    500: '#ba87f5',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f5;
$custom-light: #d1abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f5",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 267.818,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.71697,
    "c": 0.16199,
    "h": 304
  },
  "luminance": 0.3436
}

Semantic roles & 50–950 ramp

primary
#BA87F5
secondary
#E7F5D6
accent
#E1047B
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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