#BA71CC#BA71CC

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

Color values

HEX#BA71CC
RGBrgb(186, 113, 204)
HSLhsl(288, 47%, 62%)
HSVhsv(288, 45%, 80%)
CMYKcmyk(8.8%, 44.6%, 0%, 20%)
CIE-LABlab(58.61, 43.65, -35.60)
CIE-LCHlch(58.61, 56.33, 320.80°)
OKLaboklab(66.11% 0.1149 -0.0982)
OKLCHoklch(66.11% 0.151 319.5)
XYZxyz(37.0525, 26.6103, 60.2995)
Luminance0.2661 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CC #83CC71
analogous
#8D71CC #BA71CC #CC71B0
triadic
#BA71CC #CCBA71 #71CCBA
tetradic
#BA71CC #CC8D71 #83CC71 #71B0CC
square
#BA71CC #CC8D71 #83CC71 #71B0CC
split-complementary
#BA71CC #B0CC71 #71CC8D
monochromatic
#7D338F #A444BC #BA71CC #D09EDC #E6CBEC

Accessibility & contrast

On white

3.32
#BA71CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.32
#BA71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CC
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CC#FFFFFF#000000##000000
##BA71CC1.003.326.326.32
#FFFFFF3.321.0021.0021.00
#0000006.3221.001.001.00
##0000006.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388CF
Deuteranopia (green-blind)
#7790C9
Tritanopia (blue-blind)
#BB7D95
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71cc;
/* rgb */ color: rgb(186, 113, 204);
/* oklch */ color: oklch(66.1% 0.151 319.5);
Tailwind
colors: {
  custom: {
    50: '#d09cdc',
    500: '#ba71cc',
    950: '#000000',
  },
}
SCSS
$custom: #ba71cc;
$custom-light: #d09cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71cc",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 288.132,
    "s": 47.15,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66109,
    "c": 0.15118,
    "h": 319.5
  },
  "luminance": 0.26609
}

Semantic roles & 50–950 ramp

primary
#BA71CC
secondary
#C2DDBC
accent
#BA2B47
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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