#BA71BC#BA71BC

#BA71BC is a light, vivid purple. Relative luminance 0.259; OKLCH L 65.4% C 0.135 H 326.0°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#BA71BC
RGBrgb(186, 113, 188)
HSLhsl(298, 36%, 59%)
HSVhsv(298, 40%, 74%)
CMYKcmyk(1.1%, 39.9%, 0%, 26.3%)
CIE-LABlab(57.92, 40.53, -27.57)
CIE-LCHlch(57.92, 49.02, 325.78°)
OKLaboklab(65.37% 0.1117 -0.0753)
OKLCHoklch(65.37% 0.135 326)
XYZxyz(35.2312, 25.8817, 50.7071)
Luminance0.2588 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71BC #73BC71
analogous
#9571BC #BA71BC #BC7199
triadic
#BA71BC #BCBA71 #71BCBA
tetradic
#BA71BC #BC9571 #73BC71 #7199BC
square
#BA71BC #BC9571 #73BC71 #7199BC
split-complementary
#BA71BC #99BC71 #71BC95
monochromatic
#783979 #A14DA3 #BA71BC #CE9BD0 #E2C4E3

Accessibility & contrast

On white

3.40
#BA71BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#BA71BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71BC
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71BC#FFFFFF#000000##000000
##BA71BC1.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A85BF
Deuteranopia (green-blind)
#7E8EBA
Tritanopia (blue-blind)
#BE788E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba71bc;
/* rgb */ color: rgb(186, 113, 188);
/* oklch */ color: oklch(65.4% 0.135 326.0);
Tailwind
colors: {
  custom: {
    50: '#d09bd0',
    500: '#ba71bc',
    950: '#000000',
  },
}
SCSS
$custom: #ba71bc;
$custom-light: #d09bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71bc",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 298.4,
    "s": 35.885,
    "l": 59.02
  },
  "oklch": {
    "l": 0.65369,
    "c": 0.13472,
    "h": 326
  },
  "luminance": 0.2588
}

Semantic roles & 50–950 ramp

primary
#BA71BC
secondary
#B6D3B6
accent
#CC5C5F
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA71BC

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

Preview Lab → · Contrast checker → · Palette generator →

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