#BA71CE#BA71CE

#BA71CE is a light, vivid purple. Relative luminance 0.267; OKLCH L 66.2% C 0.153 H 318.8°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#BA71CE
RGBrgb(186, 113, 206)
HSLhsl(287, 49%, 63%)
HSVhsv(287, 45%, 81%)
CMYKcmyk(9.7%, 45.1%, 0%, 19.2%)
CIE-LABlab(58.70, 44.06, -36.59)
CIE-LCHlch(58.70, 57.27, 320.29°)
OKLaboklab(66.21% 0.1153 -0.1011)
OKLCHoklch(66.21% 0.153 318.8)
XYZxyz(37.2939, 26.7068, 61.5710)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CE #85CE71
analogous
#8C71CE #BA71CE #CE71B3
triadic
#BA71CE #CEBA71 #71CEBA
tetradic
#BA71CE #CE8C71 #85CE71 #71B3CE
square
#BA71CE #CE8C71 #85CE71 #71B3CE
split-complementary
#BA71CE #B3CE71 #71CE8C
monochromatic
#7E3292 #A444BE #BA71CE #D09EDE #E6CCED

Accessibility & contrast

On white

3.31
#BA71CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#BA71CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CE#FFFFFF#000000##000000
##BA71CE1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6288D1
Deuteranopia (green-blind)
#7690CB
Tritanopia (blue-blind)
#BA7D96
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71ce;
/* rgb */ color: rgb(186, 113, 206);
/* oklch */ color: oklch(66.2% 0.153 318.8);
Tailwind
colors: {
  custom: {
    50: '#d09cdd',
    500: '#ba71ce',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ce;
$custom-light: #d09cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ce",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 287.097,
    "s": 48.691,
    "l": 62.549
  },
  "oklch": {
    "l": 0.66205,
    "c": 0.1533,
    "h": 318.8
  },
  "luminance": 0.26706
}

Semantic roles & 50–950 ramp

primary
#BA71CE
secondary
#C4DEBC
accent
#BC2A49
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CE

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

Preview Lab → · Contrast checker → · Palette generator →

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