#BA87FD#BA87FD

#BA87FD is a light, vivid violet. Relative luminance 0.349; OKLCH L 72.1% C 0.172 H 302.2°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#BA87FD
RGBrgb(186, 135, 253)
HSLhsl(266, 97%, 76%)
HSVhsv(266, 47%, 99%)
CMYKcmyk(26.5%, 46.6%, 0%, 0.8%)
CIE-LABlab(65.64, 42.48, -51.81)
CIE-LCHlch(65.64, 67.00, 309.35°)
OKLaboklab(72.12% 0.0916 -0.1453)
OKLCHoklch(72.12% 0.172 302.2)
XYZxyz(46.6393, 34.8589, 97.1808)
Luminance0.3486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87FD #CAFD87
analogous
#878FFD #BA87FD #F587FD
triadic
#BA87FD #FDBA87 #87FDBA
tetradic
#BA87FD #FD878F #CAFD87 #87FDF5
square
#BA87FD #FD878F #CAFD87 #87FDF5
split-complementary
#BA87FD #FDF587 #8FFD87
monochromatic
#750FFB #974BFC #BA87FD #DDC3FE #EEE1FE

Accessibility & contrast

On white

2.63
#BA87FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#BA87FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87FD
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87FD#FFFFFF#000000##000000
##BA87FD1.002.637.977.97
#FFFFFF2.631.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#649EFF
Deuteranopia (green-blind)
#719FFA
Tritanopia (blue-blind)
#AE9CB6
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #ba87fd;
/* rgb */ color: rgb(186, 135, 253);
/* oklch */ color: oklch(72.1% 0.172 302.2);
Tailwind
colors: {
  custom: {
    50: '#d1abfe',
    500: '#ba87fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba87fd;
$custom-light: #d1abfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87fd",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 253
  },
  "hsl": {
    "h": 265.932,
    "s": 96.721,
    "l": 76.078
  },
  "oklch": {
    "l": 0.72118,
    "c": 0.17175,
    "h": 302.2
  },
  "luminance": 0.34859
}

Semantic roles & 50–950 ramp

primary
#BA87FD
secondary
#E8F7D4
accent
#E60082
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141018
muted
#837F86

Preview Lab

Preview with #BA87FD

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

Preview Lab → · Contrast checker → · Palette generator →

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