#BA71CA#BA71CA

#BA71CA is a light, vivid purple. Relative luminance 0.265; OKLCH L 66.0% C 0.149 H 320.2°. Best body text is #000000 at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#BA71CA
RGBrgb(186, 113, 202)
HSLhsl(289, 46%, 62%)
HSVhsv(289, 44%, 79%)
CMYKcmyk(7.9%, 44.1%, 0%, 20.8%)
CIE-LABlab(58.52, 43.25, -34.61)
CIE-LCHlch(58.52, 55.39, 321.34°)
OKLaboklab(66.01% 0.1146 -0.0954)
OKLCHoklch(66.01% 0.149 320.2)
XYZxyz(36.8142, 26.5149, 59.0443)
Luminance0.2651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CA #81CA71
analogous
#8E71CA #BA71CA #CA71AE
triadic
#BA71CA #CABA71 #71CABA
tetradic
#BA71CA #CA8E71 #81CA71 #71AECA
square
#BA71CA #CA8E71 #81CA71 #71AECA
split-complementary
#BA71CA #AECA71 #71CA8E
monochromatic
#7C348C #A445B9 #BA71CA #D09EDB #E5CAEB

Accessibility & contrast

On white

3.33
#BA71CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.30
#BA71CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CA
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CA#FFFFFF#000000##000000
##BA71CA1.003.336.306.30
#FFFFFF3.331.0021.0021.00
#0000006.3021.001.001.00
##0000006.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6488CD
Deuteranopia (green-blind)
#788FC7
Tritanopia (blue-blind)
#BB7C94
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71ca;
/* rgb */ color: rgb(186, 113, 202);
/* oklch */ color: oklch(66.0% 0.149 320.2);
Tailwind
colors: {
  custom: {
    50: '#d09cda',
    500: '#ba71ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ca;
$custom-light: #d09cda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ca",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 289.213,
    "s": 45.641,
    "l": 61.765
  },
  "oklch": {
    "l": 0.66013,
    "c": 0.14906,
    "h": 320.2
  },
  "luminance": 0.26514
}

Semantic roles & 50–950 ramp

primary
#BA71CA
secondary
#C1DCBB
accent
#B92D46
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CA

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

Preview Lab → · Contrast checker → · Palette generator →

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