#BA71EF#BA71EF

#BA71EF is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.9% C 0.189 H 309.0°. Best body text is #000000 at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#BA71EF
RGBrgb(186, 113, 239)
HSLhsl(275, 80%, 69%)
HSVhsv(275, 53%, 94%)
CMYKcmyk(22.2%, 52.7%, 0%, 6.3%)
CIE-LABlab(60.32, 51.05, -52.52)
CIE-LCHlch(60.32, 73.25, 314.19°)
OKLaboklab(67.94% 0.1191 -0.1473)
OKLCHoklch(67.94% 0.189 309)
XYZxyz(41.7318, 28.4820, 84.9438)
Luminance0.2848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71EF #A6EF71
analogous
#7B71EF #BA71EF #EF71E5
triadic
#BA71EF #EFBA71 #71EFBA
tetradic
#BA71EF #EF7B71 #A6EF71 #71E5EF
square
#BA71EF #EF7B71 #A6EF71 #71E5EF
split-complementary
#BA71EF #E5EF71 #71EF7B
monochromatic
#8117CE #9F3AE9 #BA71EF #D5A8F5 #EFDFFB

Accessibility & contrast

On white

3.14
#BA71EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.70
#BA71EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71EF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71EF#FFFFFF#000000##000000
##BA71EF1.003.146.706.70
#FFFFFF3.141.0021.0021.00
#0000006.7021.001.001.00
##0000006.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8EF3
Deuteranopia (green-blind)
#6392EC
Tritanopia (blue-blind)
#B387A6
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba71ef;
/* rgb */ color: rgb(186, 113, 239);
/* oklch */ color: oklch(67.9% 0.189 309.0);
Tailwind
colors: {
  custom: {
    50: '#d19cf5',
    500: '#ba71ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ef;
$custom-light: #d19cf5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ef",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 239
  },
  "hsl": {
    "h": 274.762,
    "s": 79.747,
    "l": 69.02
  },
  "oklch": {
    "l": 0.67935,
    "c": 0.18945,
    "h": 309
  },
  "luminance": 0.28481
}

Semantic roles & 50–950 ramp

primary
#BA71EF
secondary
#DBF0CB
accent
#DC0962
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71EF

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

Preview Lab → · Contrast checker → · Palette generator →

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