#BA96FA#BA96FA

#BA96FA is a light, vivid violet. Relative luminance 0.392; OKLCH L 74.5% C 0.144 H 299.5°. Best body text is #000000 at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#BA96FA
RGBrgb(186, 150, 250)
HSLhsl(262, 91%, 78%)
HSVhsv(262, 40%, 98%)
CMYKcmyk(25.6%, 40%, 0%, 2%)
CIE-LABlab(68.86, 33.51, -45.08)
CIE-LCHlch(68.86, 56.17, 306.62°)
OKLaboklab(74.5% 0.0711 -0.1258)
OKLCHoklch(74.5% 0.144 299.5)
XYZxyz(48.4074, 39.1537, 95.4311)
Luminance0.3915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96FA #D6FA96
analogous
#96A4FA #BA96FA #EC96FA
triadic
#BA96FA #FABA96 #96FABA
tetradic
#BA96FA #FA96A4 #D6FA96 #96FAEC
square
#BA96FA #FA96A4 #D6FA96 #96FAEC
split-complementary
#BA96FA #FAEC96 #A4FA96
monochromatic
#6D21F4 #945CF7 #BA96FA #E0D0FD #ECE2FE

Accessibility & contrast

On white

2.38
#BA96FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.83
#BA96FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96FA
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96FA#FFFFFF#000000##000000
##BA96FA1.002.388.838.83
#FFFFFF2.381.0021.0021.00
#0000008.8321.001.001.00
##0000008.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA8FE
Deuteranopia (green-blind)
#82A7F7
Tritanopia (blue-blind)
#AEA7BC
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba96fa;
/* rgb */ color: rgb(186, 150, 250);
/* oklch */ color: oklch(74.5% 0.144 299.5);
Tailwind
colors: {
  custom: {
    50: '#d0b5fc',
    500: '#ba96fa',
    950: '#000000',
  },
}
SCSS
$custom: #ba96fa;
$custom-light: #d0b5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96fa",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 250
  },
  "hsl": {
    "h": 261.6,
    "s": 90.909,
    "l": 78.431
  },
  "oklch": {
    "l": 0.74497,
    "c": 0.14447,
    "h": 299.5
  },
  "luminance": 0.39154
}

Semantic roles & 50–950 ramp

primary
#BA96FA
secondary
#EAF6D5
accent
#E60093
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA96FA

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

Preview Lab → · Contrast checker → · Palette generator →

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