#BA71EE#BA71EE

#BA71EE is a light, vivid violet. Relative luminance 0.284; OKLCH L 67.9% C 0.188 H 309.2°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#BA71EE
RGBrgb(186, 113, 238)
HSLhsl(275, 79%, 69%)
HSVhsv(275, 53%, 93%)
CMYKcmyk(21.8%, 52.5%, 0%, 6.7%)
CIE-LABlab(60.27, 50.83, -52.05)
CIE-LCHlch(60.27, 72.76, 314.32°)
OKLaboklab(67.88% 0.1191 -0.1459)
OKLCHoklch(67.88% 0.188 309.2)
XYZxyz(41.5845, 28.4231, 84.1679)
Luminance0.2842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71EE #A5EE71
analogous
#7C71EE #BA71EE #EE71E4
triadic
#BA71EE #EEBA71 #71EEBA
tetradic
#BA71EE #EE7C71 #A5EE71 #71E4EE
square
#BA71EE #EE7C71 #A5EE71 #71E4EE
split-complementary
#BA71EE #E4EE71 #71EE7C
monochromatic
#8118CC #9F3AE7 #BA71EE #D5A8F5 #EFDEFB

Accessibility & contrast

On white

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

On black

6.68
#BA71EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71EE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71EE#FFFFFF#000000##000000
##BA71EE1.003.146.686.68
#FFFFFF3.141.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D8EF2
Deuteranopia (green-blind)
#6492EB
Tritanopia (blue-blind)
#B387A5
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba71ee;
/* rgb */ color: rgb(186, 113, 238);
/* oklch */ color: oklch(67.9% 0.188 309.2);
Tailwind
colors: {
  custom: {
    50: '#d19cf4',
    500: '#ba71ee',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ee;
$custom-light: #d19cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ee",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 238
  },
  "hsl": {
    "h": 275.04,
    "s": 78.616,
    "l": 68.824
  },
  "oklch": {
    "l": 0.67879,
    "c": 0.18834,
    "h": 309.2
  },
  "luminance": 0.28422
}

Semantic roles & 50–950 ramp

primary
#BA71EE
secondary
#DAF0CB
accent
#DB0B61
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71EE

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

Preview Lab → · Contrast checker → · Palette generator →

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