#BA91EC#BA91EC

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

Color values

HEX#BA91EC
RGBrgb(186, 145, 236)
HSLhsl(267, 71%, 75%)
HSVhsv(267, 39%, 93%)
CMYKcmyk(21.2%, 38.6%, 0%, 7.5%)
CIE-LABlab(67.09, 33.04, -40.20)
CIE-LCHlch(67.09, 52.04, 309.41°)
OKLaboklab(72.95% 0.0753 -0.1116)
OKLCHoklch(72.95% 0.135 304)
XYZxyz(45.5123, 36.7462, 84.0357)
Luminance0.3675 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA91EC #C3EC91
analogous
#9196EC #BA91EC #E891EC
triadic
#BA91EC #ECBA91 #91ECBA
tetradic
#BA91EC #EC9196 #C3EC91 #91ECE8
square
#BA91EC #EC9196 #C3EC91 #91ECE8
split-complementary
#BA91EC #ECE891 #96EC91
monochromatic
#7929DA #995DE3 #BA91EC #DBC5F5 #EFE5FA

Accessibility & contrast

On white

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

On black

8.35
#BA91EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA91EC
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA91EC#FFFFFF#000000##000000
##BA91EC1.002.528.358.35
#FFFFFF2.521.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba91ec;
/* rgb */ color: rgb(186, 145, 236);
/* oklch */ color: oklch(72.9% 0.135 304.0);
Tailwind
colors: {
  custom: {
    50: '#d0b1f2',
    500: '#ba91ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba91ec;
$custom-light: #d0b1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba91ec",
  "rgb": {
    "r": 186,
    "g": 145,
    "b": 236
  },
  "hsl": {
    "h": 267.033,
    "s": 70.543,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72947,
    "c": 0.13466,
    "h": 304
  },
  "luminance": 0.36746
}

Semantic roles & 50–950 ramp

primary
#BA91EC
secondary
#E7F2D9
accent
#D3137C
background
#FCFAFE
surface
#F9F5FD
border
#D2CFD5
text
#141117
muted
#828085

Preview Lab

Preview with #BA91EC

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

Preview Lab → · Contrast checker → · Palette generator →

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