#BA96FF#BA96FF

#BA96FF is a light, vivid violet. Relative luminance 0.395; OKLCH L 74.7% C 0.151 H 298.5°. Best body text is #000000 at 8.89:1 contrast (WCAG AA passes).

Color values

HEX#BA96FF
RGBrgb(186, 150, 255)
HSLhsl(261, 100%, 79%)
HSVhsv(261, 41%, 100%)
CMYKcmyk(27.1%, 41.2%, 0%, 0%)
CIE-LABlab(69.09, 34.69, -47.45)
CIE-LCHlch(69.09, 58.78, 306.18°)
OKLaboklab(74.74% 0.072 -0.1326)
OKLCHoklch(74.74% 0.151 298.5)
XYZxyz(49.2018, 39.4714, 99.6149)
Luminance0.3947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA96FF #DBFF96
analogous
#96A7FF #BA96FF #EE96FF
triadic
#BA96FF #FFBA96 #96FFBA
tetradic
#BA96FF #FF96A7 #DBFF96 #96FFEE
square
#BA96FF #FF96A7 #DBFF96 #96FFEE
split-complementary
#BA96FF #FFEE96 #A7FF96
monochromatic
#6A1CFF #9259FF #BA96FF #E2D3FF #EBE0FF

Accessibility & contrast

On white

2.36
#BA96FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.89
#BA96FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA96FF
8.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA96FF#FFFFFF#000000##000000
##BA96FF1.002.368.898.89
#FFFFFF2.361.0021.0021.00
#0000008.8921.001.001.00
##0000008.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A9FF
Deuteranopia (green-blind)
#80A8FC
Tritanopia (blue-blind)
#ACA8BE
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #ba96ff;
/* rgb */ color: rgb(186, 150, 255);
/* oklch */ color: oklch(74.7% 0.151 298.5);
Tailwind
colors: {
  custom: {
    50: '#d1b5ff',
    500: '#ba96ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba96ff;
$custom-light: #d1b5ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba96ff",
  "rgb": {
    "r": 186,
    "g": 150,
    "b": 255
  },
  "hsl": {
    "h": 260.571,
    "s": 100,
    "l": 79.412
  },
  "oklch": {
    "l": 0.74745,
    "c": 0.15089,
    "h": 298.5
  },
  "luminance": 0.39472
}

Semantic roles & 50–950 ramp

primary
#BA96FF
secondary
#EBF7D4
accent
#E60097
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA96FF

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

Preview Lab → · Contrast checker → · Palette generator →

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