#BA87FC#BA87FC

#BA87FC is a light, vivid violet. Relative luminance 0.348; OKLCH L 72.1% C 0.171 H 302.5°. Best body text is #000000 at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#BA87FC
RGBrgb(186, 135, 252)
HSLhsl(266, 95%, 76%)
HSVhsv(266, 46%, 99%)
CMYKcmyk(26.2%, 46.4%, 0%, 1.2%)
CIE-LABlab(65.59, 42.25, -51.34)
CIE-LCHlch(65.59, 66.49, 309.45°)
OKLaboklab(72.06% 0.0915 -0.1439)
OKLCHoklch(72.06% 0.171 302.5)
XYZxyz(46.4805, 34.7953, 96.3440)
Luminance0.3479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87FC #C9FC87
analogous
#878EFC #BA87FC #F587FC
triadic
#BA87FC #FCBA87 #87FCBA
tetradic
#BA87FC #FC878E #C9FC87 #87FCF5
square
#BA87FC #FC878E #C9FC87 #87FCF5
split-complementary
#BA87FC #FCF587 #8EFC87
monochromatic
#7510F9 #984BFB #BA87FC #DCC3FD #EEE1FE

Accessibility & contrast

On white

2.64
#BA87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.96
#BA87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87FC
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87FC#FFFFFF#000000##000000
##BA87FC1.002.647.967.96
#FFFFFF2.641.0021.0021.00
#0000007.9621.001.001.00
##0000007.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#659EFF
Deuteranopia (green-blind)
#729FF9
Tritanopia (blue-blind)
#AE9CB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87fc;
/* rgb */ color: rgb(186, 135, 252);
/* oklch */ color: oklch(72.1% 0.171 302.5);
Tailwind
colors: {
  custom: {
    50: '#d1abfe',
    500: '#ba87fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba87fc;
$custom-light: #d1abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87fc",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 266.154,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72064,
    "c": 0.17053,
    "h": 302.5
  },
  "luminance": 0.34795
}

Semantic roles & 50–950 ramp

primary
#BA87FC
secondary
#E8F6D5
accent
#E60081
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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