#BA91FE#BA91FE

#BA91FE is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.8% C 0.157 H 299.9°. Best body text is #000000 at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#BA91FE
RGBrgb(186, 145, 254)
HSLhsl(263, 98%, 78%)
HSVhsv(263, 43%, 100%)
CMYKcmyk(26.8%, 42.9%, 0%, 0.4%)
CIE-LABlab(67.91, 37.22, -48.77)
CIE-LCHlch(67.91, 61.35, 307.35°)
OKLaboklab(73.84% 0.0785 -0.1364)
OKLCHoklch(73.84% 0.157 299.9)
XYZxyz(48.2604, 37.8454, 98.5091)
Luminance0.3785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91FE #D5FE91
analogous
#919EFE #BA91FE #F191FE
triadic
#BA91FE #FEBA91 #91FEBA
tetradic
#BA91FE #FE919E #D5FE91 #91FEF1
square
#BA91FE #FE919E #D5FE91 #91FEF1
split-complementary
#BA91FE #FEF191 #9EFE91
monochromatic
#6E18FD #9454FD #BA91FE #E0CEFF #ECE1FF

Accessibility & contrast

On white

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

On black

8.57
#BA91FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91FE
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91FE#FFFFFF#000000##000000
##BA91FE1.002.458.578.57
#FFFFFF2.451.0021.0021.00
#0000008.5721.001.001.00
##0000008.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A5FF
Deuteranopia (green-blind)
#7BA5FB
Tritanopia (blue-blind)
#ADA4BB
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #ba91fe;
/* rgb */ color: rgb(186, 145, 254);
/* oklch */ color: oklch(73.8% 0.157 299.9);
Tailwind
colors: {
  custom: {
    50: '#d1b2ff',
    500: '#ba91fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba91fe;
$custom-light: #d1b2ff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91fe",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 254
  },
  "hsl": {
    "h": 262.569,
    "s": 98.198,
    "l": 78.235
  },
  "oklch": {
    "l": 0.73836,
    "c": 0.15741,
    "h": 299.9
  },
  "luminance": 0.37846
}

Semantic roles & 50–950 ramp

primary
#BA91FE
secondary
#EAF7D4
accent
#E6008F
background
#FDFBFF
surface
#FAF6FF
border
#D3D0D7
text
#141118
muted
#838086

Preview Lab

Preview with #BA91FE

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

Preview Lab → · Contrast checker → · Palette generator →

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