#BA71BB#BA71BB

#BA71BB is a light, vivid purple. Relative luminance 0.258; OKLCH L 65.3% C 0.134 H 326.5°. Best body text is #000000 at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#BA71BB
RGBrgb(186, 113, 187)
HSLhsl(299, 35%, 59%)
HSVhsv(299, 40%, 73%)
CMYKcmyk(0.5%, 39.6%, 0%, 26.7%)
CIE-LABlab(57.88, 40.34, -27.06)
CIE-LCHlch(57.88, 48.57, 326.15°)
OKLaboklab(65.33% 0.1115 -0.0738)
OKLCHoklch(65.33% 0.134 326.5)
XYZxyz(35.1237, 25.8388, 50.1413)
Luminance0.2584 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71BB #72BB71
analogous
#9571BB #BA71BB #BB7197
triadic
#BA71BB #BBBA71 #71BBBA
tetradic
#BA71BB #BB9571 #72BB71 #7197BB
square
#BA71BB #BB9571 #72BB71 #7197BB
split-complementary
#BA71BB #97BB71 #71BB95
monochromatic
#773A78 #A04DA1 #BA71BB #CE9ACF #E2C4E3

Accessibility & contrast

On white

3.41
#BA71BB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.17
#BA71BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71BB
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71BB#FFFFFF#000000##000000
##BA71BB1.003.416.176.17
#FFFFFF3.411.0021.0021.00
#0000006.1721.001.001.00
##0000006.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B85BE
Deuteranopia (green-blind)
#7E8EB9
Tritanopia (blue-blind)
#BE788D
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba71bb;
/* rgb */ color: rgb(186, 113, 187);
/* oklch */ color: oklch(65.3% 0.134 326.5);
Tailwind
colors: {
  custom: {
    50: '#d09bcf',
    500: '#ba71bb',
    950: '#000000',
  },
}
SCSS
$custom: #ba71bb;
$custom-light: #d09bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71bb",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 299.189,
    "s": 35.238,
    "l": 58.824
  },
  "oklch": {
    "l": 0.65325,
    "c": 0.13374,
    "h": 326.5
  },
  "luminance": 0.25837
}

Semantic roles & 50–950 ramp

primary
#BA71BB
secondary
#B6D2B5
accent
#CB5D5E
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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