#BA71CB#BA71CB

#BA71CB is a light, vivid purple. Relative luminance 0.266; OKLCH L 66.1% C 0.150 H 319.9°. Best body text is #000000 at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#BA71CB
RGBrgb(186, 113, 203)
HSLhsl(289, 46%, 62%)
HSVhsv(289, 44%, 80%)
CMYKcmyk(8.4%, 44.3%, 0%, 20.4%)
CIE-LABlab(58.57, 43.45, -35.10)
CIE-LCHlch(58.57, 55.86, 321.07°)
OKLaboklab(66.06% 0.1148 -0.0968)
OKLCHoklch(66.06% 0.15 319.9)
XYZxyz(36.9330, 26.5625, 59.6699)
Luminance0.2656 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CB #82CB71
analogous
#8D71CB #BA71CB #CB71AF
triadic
#BA71CB #CBBA71 #71CBBA
tetradic
#BA71CB #CB8D71 #82CB71 #71AFCB
square
#BA71CB #CB8D71 #82CB71 #71AFCB
split-complementary
#BA71CB #AFCB71 #71CB8D
monochromatic
#7D348E #A444BB #BA71CB #D09EDB #E6CBEC

Accessibility & contrast

On white

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

On black

6.31
#BA71CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CB#FFFFFF#000000##000000
##BA71CB1.003.336.316.31
#FFFFFF3.331.0021.0021.00
#0000006.3121.001.001.00
##0000006.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6488CE
Deuteranopia (green-blind)
#7890C8
Tritanopia (blue-blind)
#BB7D94
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71cb;
/* rgb */ color: rgb(186, 113, 203);
/* oklch */ color: oklch(66.1% 0.150 319.9);
Tailwind
colors: {
  custom: {
    50: '#d09cdb',
    500: '#ba71cb',
    950: '#000000',
  },
}
SCSS
$custom: #ba71cb;
$custom-light: #d09cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71cb",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 203
  },
  "hsl": {
    "h": 288.667,
    "s": 46.392,
    "l": 61.961
  },
  "oklch": {
    "l": 0.66061,
    "c": 0.15012,
    "h": 319.9
  },
  "luminance": 0.26561
}

Semantic roles & 50–950 ramp

primary
#BA71CB
secondary
#C2DCBB
accent
#BA2C47
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CB

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

Preview Lab → · Contrast checker → · Palette generator →

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