#BA71EC#BA71EC

#BA71EC is a light, vivid violet. Relative luminance 0.283; OKLCH L 67.8% C 0.186 H 309.7°. Best body text is #000000 at 6.66:1 contrast (WCAG AA passes).

Color values

HEX#BA71EC
RGBrgb(186, 113, 236)
HSLhsl(276, 76%, 68%)
HSVhsv(276, 52%, 93%)
CMYKcmyk(21.2%, 52.1%, 0%, 7.5%)
CIE-LABlab(60.16, 50.39, -51.11)
CIE-LCHlch(60.16, 71.77, 314.60°)
OKLaboklab(67.77% 0.1189 -0.1432)
OKLCHoklch(67.77% 0.186 309.7)
XYZxyz(41.2923, 28.3062, 82.6290)
Luminance0.2831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71EC #A3EC71
analogous
#7C71EC #BA71EC #EC71E0
triadic
#BA71EC #ECBA71 #71ECBA
tetradic
#BA71EC #EC7C71 #A3EC71 #71E0EC
square
#BA71EC #EC7C71 #A3EC71 #71E0EC
split-complementary
#BA71EC #E0EC71 #71EC7C
monochromatic
#811BC8 #A03BE5 #BA71EC #D4A7F3 #EEDDFA

Accessibility & contrast

On white

3.15
#BA71EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.66
#BA71EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71EC
6.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71EC#FFFFFF#000000##000000
##BA71EC1.003.156.666.66
#FFFFFF3.151.0021.0021.00
#0000006.6621.001.001.00
##0000006.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4E8EF0
Deuteranopia (green-blind)
#6592E9
Tritanopia (blue-blind)
#B486A4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba71ec;
/* rgb */ color: rgb(186, 113, 236);
/* oklch */ color: oklch(67.8% 0.186 309.7);
Tailwind
colors: {
  custom: {
    50: '#d19cf3',
    500: '#ba71ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ec;
$custom-light: #d19cf3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ec",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 236
  },
  "hsl": {
    "h": 275.61,
    "s": 76.398,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67767,
    "c": 0.18611,
    "h": 309.7
  },
  "luminance": 0.28305
}

Semantic roles & 50–950 ramp

primary
#BA71EC
secondary
#D9EFCA
accent
#D90D60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71EC

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

Preview Lab → · Contrast checker → · Palette generator →

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