#BA71EA#BA71EA

#BA71EA is a light, vivid violet. Relative luminance 0.282; OKLCH L 67.7% C 0.184 H 310.2°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#BA71EA
RGBrgb(186, 113, 234)
HSLhsl(276, 74%, 68%)
HSVhsv(276, 52%, 92%)
CMYKcmyk(20.5%, 51.7%, 0%, 8.2%)
CIE-LABlab(60.06, 49.95, -50.16)
CIE-LCHlch(60.06, 70.79, 314.88°)
OKLaboklab(67.66% 0.1188 -0.1404)
OKLCHoklch(67.66% 0.184 310.2)
XYZxyz(41.0033, 28.1906, 81.1072)
Luminance0.2819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71EA #A1EA71
analogous
#7D71EA #BA71EA #EA71DE
triadic
#BA71EA #EABA71 #71EABA
tetradic
#BA71EA #EA7D71 #A1EA71 #71DEEA
square
#BA71EA #EA7D71 #A1EA71 #71DEEA
split-complementary
#BA71EA #DEEA71 #71EA7D
monochromatic
#821DC4 #A03CE2 #BA71EA #D4A6F2 #EEDCFA

Accessibility & contrast

On white

3.16
#BA71EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#BA71EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71EA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71EA#FFFFFF#000000##000000
##BA71EA1.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#508DEE
Deuteranopia (green-blind)
#6792E7
Tritanopia (blue-blind)
#B486A3
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba71ea;
/* rgb */ color: rgb(186, 113, 234);
/* oklch */ color: oklch(67.7% 0.184 310.2);
Tailwind
colors: {
  custom: {
    50: '#d19cf1',
    500: '#ba71ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ea;
$custom-light: #d19cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ea",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 234
  },
  "hsl": {
    "h": 276.198,
    "s": 74.233,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67657,
    "c": 0.18389,
    "h": 310.2
  },
  "luminance": 0.2819
}

Semantic roles & 50–950 ramp

primary
#BA71EA
secondary
#D8EEC9
accent
#D60F5E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71EA

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

Preview Lab → · Contrast checker → · Palette generator →

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