#BA96FB#BA96FB

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

Color values

HEX#BA96FB
RGBrgb(186, 150, 251)
HSLhsl(261, 93%, 79%)
HSVhsv(261, 40%, 98%)
CMYKcmyk(25.9%, 40.2%, 0%, 1.6%)
CIE-LABlab(68.91, 33.75, -45.56)
CIE-LCHlch(68.91, 56.69, 306.53°)
OKLaboklab(74.55% 0.0713 -0.1271)
OKLCHoklch(74.55% 0.146 299.3)
XYZxyz(48.5646, 39.2165, 96.2591)
Luminance0.3922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96FB #D7FB96
analogous
#96A4FB #BA96FB #EC96FB
triadic
#BA96FB #FBBA96 #96FBBA
tetradic
#BA96FB #FB96A4 #D7FB96 #96FBEC
square
#BA96FB #FB96A4 #D7FB96 #96FBEC
split-complementary
#BA96FB #FBEC96 #A4FB96
monochromatic
#6D20F7 #935BF9 #BA96FB #E1D1FD #ECE2FE

Accessibility & contrast

On white

2.37
#BA96FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.84
#BA96FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96FB
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96FB#FFFFFF#000000##000000
##BA96FB1.002.378.848.84
#FFFFFF2.371.0021.0021.00
#0000008.8421.001.001.00
##0000008.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA8FF
Deuteranopia (green-blind)
#82A7F8
Tritanopia (blue-blind)
#AEA7BD
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #ba96fb;
/* rgb */ color: rgb(186, 150, 251);
/* oklch */ color: oklch(74.5% 0.146 299.3);
Tailwind
colors: {
  custom: {
    50: '#d0b5fd',
    500: '#ba96fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba96fb;
$custom-light: #d0b5fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96fb",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 251
  },
  "hsl": {
    "h": 261.386,
    "s": 92.661,
    "l": 78.627
  },
  "oklch": {
    "l": 0.74546,
    "c": 0.14575,
    "h": 299.3
  },
  "luminance": 0.39217
}

Semantic roles & 50–950 ramp

primary
#BA96FB
secondary
#EAF6D5
accent
#E60094
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA96FB

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

Preview Lab → · Contrast checker → · Palette generator →

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