#BA91EB#BA91EB

#BA91EB is a light, vivid violet. Relative luminance 0.367; OKLCH L 72.9% C 0.133 H 304.3°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#BA91EB
RGBrgb(186, 145, 235)
HSLhsl(267, 69%, 75%)
HSVhsv(267, 38%, 92%)
CMYKcmyk(20.9%, 38.3%, 0%, 7.8%)
CIE-LABlab(67.04, 32.81, -39.72)
CIE-LCHlch(67.04, 51.52, 309.56°)
OKLaboklab(72.9% 0.0751 -0.1103)
OKLCHoklch(72.9% 0.133 304.3)
XYZxyz(45.3674, 36.6882, 83.2726)
Luminance0.3669 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91EB #C2EB91
analogous
#9195EB #BA91EB #E791EB
triadic
#BA91EB #EBBA91 #91EBBA
tetradic
#BA91EB #EB9195 #C2EB91 #91EBE7
square
#BA91EB #EB9195 #C2EB91 #91EBE7
split-complementary
#BA91EB #EBE791 #95EB91
monochromatic
#7929D8 #9A5DE2 #BA91EB #DAC5F4 #EFE5FA

Accessibility & contrast

On white

2.52
#BA91EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#BA91EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91EB
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91EB#FFFFFF#000000##000000
##BA91EB1.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7CA2EE
Deuteranopia (green-blind)
#85A3E9
Tritanopia (blue-blind)
#B29FB3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #ba91eb;
/* rgb */ color: rgb(186, 145, 235);
/* oklch */ color: oklch(72.9% 0.133 304.3);
Tailwind
colors: {
  custom: {
    50: '#d0b1f2',
    500: '#ba91eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba91eb;
$custom-light: #d0b1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91eb",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 235
  },
  "hsl": {
    "h": 267.333,
    "s": 69.231,
    "l": 74.51
  },
  "oklch": {
    "l": 0.729,
    "c": 0.1334,
    "h": 304.3
  },
  "luminance": 0.36688
}

Semantic roles & 50–950 ramp

primary
#BA91EB
secondary
#E7F2D9
accent
#D1147B
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#141117
muted
#828085

Preview Lab

Preview with #BA91EB

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

Preview Lab → · Contrast checker → · Palette generator →

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