#BA91FC#BA91FC

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

Color values

HEX#BA91FC
RGBrgb(186, 145, 252)
HSLhsl(263, 95%, 78%)
HSVhsv(263, 42%, 99%)
CMYKcmyk(26.2%, 42.5%, 0%, 1.2%)
CIE-LABlab(67.81, 36.75, -47.83)
CIE-LCHlch(67.81, 60.32, 307.54°)
OKLaboklab(73.73% 0.0782 -0.1337)
OKLCHoklch(73.73% 0.155 300.3)
XYZxyz(47.9418, 37.7180, 96.8311)
Luminance0.3772 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91FC #D3FC91
analogous
#919DFC #BA91FC #F091FC
triadic
#BA91FC #FCBA91 #91FCBA
tetradic
#BA91FC #FC919D #D3FC91 #91FCF0
square
#BA91FC #FC919D #D3FC91 #91FCF0
split-complementary
#BA91FC #FCF091 #9DFC91
monochromatic
#6F1AF9 #9555FA #BA91FC #DFCDFE #ECE1FE

Accessibility & contrast

On white

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

On black

8.54
#BA91FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91FC
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91FC#FFFFFF#000000##000000
##BA91FC1.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba91fc;
/* rgb */ color: rgb(186, 145, 252);
/* oklch */ color: oklch(73.7% 0.155 300.3);
Tailwind
colors: {
  custom: {
    50: '#d1b2fe',
    500: '#ba91fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba91fc;
$custom-light: #d1b2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91fc",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 252
  },
  "hsl": {
    "h": 262.991,
    "s": 94.69,
    "l": 77.843
  },
  "oklch": {
    "l": 0.73734,
    "c": 0.15489,
    "h": 300.3
  },
  "luminance": 0.37718
}

Semantic roles & 50–950 ramp

primary
#BA91FC
secondary
#E9F6D5
accent
#E6008E
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA91FC

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

Preview Lab → · Contrast checker → · Palette generator →

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