#BA87F4#BA87F4

#BA87F4 is a light, vivid violet. Relative luminance 0.343; OKLCH L 71.6% C 0.161 H 304.2°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#BA87F4
RGBrgb(186, 135, 244)
HSLhsl(268, 83%, 74%)
HSVhsv(268, 45%, 96%)
CMYKcmyk(23.8%, 44.7%, 0%, 4.3%)
CIE-LABlab(65.20, 40.39, -47.56)
CIE-LCHlch(65.20, 62.40, 310.34°)
OKLaboklab(71.65% 0.0904 -0.1329)
OKLCHoklch(71.65% 0.161 304.2)
XYZxyz(45.2393, 34.2989, 89.8075)
Luminance0.3430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA87F4 #C1F487
analogous
#878BF4 #BA87F4 #F087F4
triadic
#BA87F4 #F4BA87 #87F4BA
tetradic
#BA87F4 #F4878B #C1F487 #87F4F0
square
#BA87F4 #F4878B #C1F487 #87F4F0
split-complementary
#BA87F4 #F4F087 #8BF487
monochromatic
#7A17EA #9A4FEF #BA87F4 #DABFF9 #EFE3FC

Accessibility & contrast

On white

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

On black

7.86
#BA87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA87F4
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA87F4#FFFFFF#000000##000000
##BA87F41.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9DF8
Deuteranopia (green-blind)
#769EF1
Tritanopia (blue-blind)
#B099B2
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #ba87f4;
/* rgb */ color: rgb(186, 135, 244);
/* oklch */ color: oklch(71.6% 0.161 304.2);
Tailwind
colors: {
  custom: {
    50: '#d1abf8',
    500: '#ba87f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba87f4;
$custom-light: #d1abf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba87f4",
  "rgb": {
    "r": 186,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 268.073,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.71645,
    "c": 0.16077,
    "h": 304.2
  },
  "luminance": 0.34299
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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