#BA91FF#BA91FF

#BA91FF is a light, vivid violet. Relative luminance 0.379; OKLCH L 73.9% C 0.159 H 299.7°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#BA91FF
RGBrgb(186, 145, 255)
HSLhsl(262, 100%, 78%)
HSVhsv(262, 43%, 100%)
CMYKcmyk(27.1%, 43.1%, 0%, 0%)
CIE-LABlab(67.95, 37.46, -49.24)
CIE-LCHlch(67.95, 61.87, 307.26°)
OKLaboklab(73.89% 0.0787 -0.1378)
OKLCHoklch(73.89% 0.159 299.7)
XYZxyz(48.4209, 37.9096, 99.3547)
Luminance0.3791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91FF #D6FF91
analogous
#919FFF #BA91FF #F191FF
triadic
#BA91FF #FFBA91 #91FFBA
tetradic
#BA91FF #FF919F #D6FF91 #91FFF1
square
#BA91FF #FF919F #D6FF91 #91FFF1
split-complementary
#BA91FF #FFF191 #9FFF91
monochromatic
#6D17FF #9454FF #BA91FF #E0CEFF #ECE0FF

Accessibility & contrast

On white

2.45
#BA91FF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.58
#BA91FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91FF
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91FF#FFFFFF#000000##000000
##BA91FF1.002.458.588.58
#FFFFFF2.451.0021.0021.00
#0000008.5821.001.001.00
##0000008.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A5FF
Deuteranopia (green-blind)
#7AA5FC
Tritanopia (blue-blind)
#ADA4BC
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #ba91ff;
/* rgb */ color: rgb(186, 145, 255);
/* oklch */ color: oklch(73.9% 0.159 299.7);
Tailwind
colors: {
  custom: {
    50: '#d1b2ff',
    500: '#ba91ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba91ff;
$custom-light: #d1b2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91ff",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 255
  },
  "hsl": {
    "h": 262.364,
    "s": 100,
    "l": 78.431
  },
  "oklch": {
    "l": 0.73887,
    "c": 0.15867,
    "h": 299.7
  },
  "luminance": 0.3791
}

Semantic roles & 50–950 ramp

primary
#BA91FF
secondary
#EAF7D4
accent
#E60090
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA91FF

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

Preview Lab → · Contrast checker → · Palette generator →

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