#BA71EB#BA71EB

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

Color values

HEX#BA71EB
RGBrgb(186, 113, 235)
HSLhsl(276, 75%, 68%)
HSVhsv(276, 52%, 92%)
CMYKcmyk(20.9%, 51.9%, 0%, 7.8%)
CIE-LABlab(60.11, 50.17, -50.63)
CIE-LCHlch(60.11, 71.28, 314.74°)
OKLaboklab(67.71% 0.1188 -0.1418)
OKLCHoklch(67.71% 0.185 310)
XYZxyz(41.1474, 28.2482, 81.8660)
Luminance0.2825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71EB #A2EB71
analogous
#7D71EB #BA71EB #EB71DF
triadic
#BA71EB #EBBA71 #71EBBA
tetradic
#BA71EB #EB7D71 #A2EB71 #71DFEB
square
#BA71EB #EB7D71 #A2EB71 #71DFEB
split-complementary
#BA71EB #DFEB71 #71EB7D
monochromatic
#821CC6 #A03BE3 #BA71EB #D4A7F3 #EEDCFA

Accessibility & contrast

On white

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

On black

6.65
#BA71EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71EB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71EB#FFFFFF#000000##000000
##BA71EB1.003.166.656.65
#FFFFFF3.161.0021.0021.00
#0000006.6521.001.001.00
##0000006.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8EEF
Deuteranopia (green-blind)
#6692E8
Tritanopia (blue-blind)
#B486A4
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba71eb;
/* rgb */ color: rgb(186, 113, 235);
/* oklch */ color: oklch(67.7% 0.185 310.0);
Tailwind
colors: {
  custom: {
    50: '#d19cf2',
    500: '#ba71eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba71eb;
$custom-light: #d19cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71eb",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 235
  },
  "hsl": {
    "h": 275.902,
    "s": 75.309,
    "l": 68.235
  },
  "oklch": {
    "l": 0.67712,
    "c": 0.185,
    "h": 310
  },
  "luminance": 0.28248
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA71EB

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

Preview Lab → · Contrast checker → · Palette generator →

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