#BA87F3#BA87F3

#BA87F3 is a light, vivid violet. Relative luminance 0.342; OKLCH L 71.6% C 0.160 H 304.5°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#BA87F3
RGBrgb(186, 135, 243)
HSLhsl(268, 82%, 74%)
HSVhsv(268, 44%, 95%)
CMYKcmyk(23.5%, 44.4%, 0%, 4.7%)
CIE-LABlab(65.15, 40.16, -47.09)
CIE-LCHlch(65.15, 61.89, 310.46°)
OKLaboklab(71.59% 0.0903 -0.1315)
OKLCHoklch(71.59% 0.16 304.5)
XYZxyz(45.0879, 34.2383, 89.0100)
Luminance0.3424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F3 #C0F387
analogous
#878AF3 #BA87F3 #F087F3
triadic
#BA87F3 #F3BA87 #87F3BA
tetradic
#BA87F3 #F3878A #C0F387 #87F3F0
square
#BA87F3 #F3878A #C0F387 #87F3F0
split-complementary
#BA87F3 #F3F087 #8AF387
monochromatic
#7A18E8 #9A4FED #BA87F3 #DABFF9 #EFE3FC

Accessibility & contrast

On white

2.68
#BA87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#BA87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F3
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F3#FFFFFF#000000##000000
##BA87F31.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9DF7
Deuteranopia (green-blind)
#779EF0
Tritanopia (blue-blind)
#B199B1
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87f3;
/* rgb */ color: rgb(186, 135, 243);
/* oklch */ color: oklch(71.6% 0.160 304.5);
Tailwind
colors: {
  custom: {
    50: '#d1abf7',
    500: '#ba87f3',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f3;
$custom-light: #d1abf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f3",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 268.333,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.71594,
    "c": 0.15955,
    "h": 304.5
  },
  "luminance": 0.34238
}

Semantic roles & 50–950 ramp

primary
#BA87F3
secondary
#E6F4D7
accent
#DE0779
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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