#BA89FA#BA89FA

#BA89FA is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.3% C 0.165 H 302.5°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#BA89FA
RGBrgb(186, 137, 250)
HSLhsl(266, 92%, 76%)
HSVhsv(266, 45%, 98%)
CMYKcmyk(25.6%, 45.2%, 0%, 2%)
CIE-LABlab(65.93, 40.69, -49.70)
CIE-LCHlch(65.93, 64.23, 309.30°)
OKLaboklab(72.29% 0.0886 -0.1391)
OKLCHoklch(72.29% 0.165 302.5)
XYZxyz(46.4469, 35.2325, 94.7776)
Luminance0.3523 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA89FA #C9FA89
analogous
#8990FA #BA89FA #F389FA
triadic
#BA89FA #FABA89 #89FABA
tetradic
#BA89FA #FA8990 #C9FA89 #89FAF3
square
#BA89FA #FA8990 #C9FA89 #89FAF3
split-complementary
#BA89FA #FAF389 #90FA89
monochromatic
#7514F5 #984EF8 #BA89FA #DCC4FC #EEE2FE

Accessibility & contrast

On white

2.61
#BA89FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.05
#BA89FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA89FA
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA89FA#FFFFFF#000000##000000
##BA89FA1.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#699FFE
Deuteranopia (green-blind)
#75A0F7
Tritanopia (blue-blind)
#AF9DB6
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #ba89fa;
/* rgb */ color: rgb(186, 137, 250);
/* oklch */ color: oklch(72.3% 0.165 302.5);
Tailwind
colors: {
  custom: {
    50: '#d1acfc',
    500: '#ba89fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba89fa;
$custom-light: #d1acfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba89fa",
  "rgb": {
    "r": 186,
    "g": 137,
    "b": 250
  },
  "hsl": {
    "h": 266.018,
    "s": 91.87,
    "l": 75.882
  },
  "oklch": {
    "l": 0.72287,
    "c": 0.16496,
    "h": 302.5
  },
  "luminance": 0.35233
}

Semantic roles & 50–950 ramp

primary
#BA89FA
secondary
#E8F6D5
accent
#E60082
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#141017
muted
#837F85

Preview Lab

Preview with #BA89FA

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

Preview Lab → · Contrast checker → · Palette generator →

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