#BA91FB#BA91FB

#BA91FB is a light, vivid violet. Relative luminance 0.377; OKLCH L 73.7% C 0.154 H 300.5°. Best body text is #000000 at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#BA91FB
RGBrgb(186, 145, 251)
HSLhsl(263, 93%, 78%)
HSVhsv(263, 42%, 98%)
CMYKcmyk(25.9%, 42.2%, 0%, 1.6%)
CIE-LABlab(67.77, 36.52, -47.35)
CIE-LCHlch(67.77, 59.80, 307.64°)
OKLaboklab(73.68% 0.078 -0.1323)
OKLCHoklch(73.68% 0.154 300.5)
XYZxyz(47.7837, 37.6548, 95.9988)
Luminance0.3765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91FB #D2FB91
analogous
#919DFB #BA91FB #EF91FB
triadic
#BA91FB #FBBA91 #91FBBA
tetradic
#BA91FB #FB919D #D2FB91 #91FBEF
square
#BA91FB #FB919D #D2FB91 #91FBEF
split-complementary
#BA91FB #FBEF91 #9DFB91
monochromatic
#701BF7 #9556F9 #BA91FB #DFCCFD #ECE1FE

Accessibility & contrast

On white

2.46
#BA91FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.53
#BA91FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91FB
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91FB#FFFFFF#000000##000000
##BA91FB1.002.468.538.53
#FFFFFF2.461.0021.0021.00
#0000008.5321.001.001.00
##0000008.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A5FF
Deuteranopia (green-blind)
#7DA4F8
Tritanopia (blue-blind)
#AEA3BA
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba91fb;
/* rgb */ color: rgb(186, 145, 251);
/* oklch */ color: oklch(73.7% 0.154 300.5);
Tailwind
colors: {
  custom: {
    50: '#d1b2fd',
    500: '#ba91fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba91fb;
$custom-light: #d1b2fd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91fb",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 251
  },
  "hsl": {
    "h": 263.208,
    "s": 92.982,
    "l": 77.647
  },
  "oklch": {
    "l": 0.73683,
    "c": 0.15362,
    "h": 300.5
  },
  "luminance": 0.37655
}

Semantic roles & 50–950 ramp

primary
#BA91FB
secondary
#E9F6D5
accent
#E6008D
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141117
muted
#838085

Preview Lab

Preview with #BA91FB

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

Preview Lab → · Contrast checker → · Palette generator →

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