#BA71BD#BA71BD

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

Color values

HEX#BA71BD
RGBrgb(186, 113, 189)
HSLhsl(298, 37%, 59%)
HSVhsv(298, 40%, 74%)
CMYKcmyk(1.6%, 40.2%, 0%, 25.9%)
CIE-LABlab(57.97, 40.72, -28.08)
CIE-LCHlch(57.97, 49.46, 325.41°)
OKLaboklab(65.41% 0.112 -0.0767)
OKLCHoklch(65.41% 0.136 325.6)
XYZxyz(35.3393, 25.9250, 51.2768)
Luminance0.2592 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71BD #74BD71
analogous
#9471BD #BA71BD #BD719A
triadic
#BA71BD #BDBA71 #71BDBA
tetradic
#BA71BD #BD9471 #74BD71 #719ABD
square
#BA71BD #BD9471 #74BD71 #719ABD
split-complementary
#BA71BD #9ABD71 #71BD94
monochromatic
#78397B #A14CA4 #BA71BD #CE9BD0 #E3C5E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA71BD#FFFFFF#000000##000000
##BA71BD1.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)
#6A86C0
Deuteranopia (green-blind)
#7D8FBB
Tritanopia (blue-blind)
#BE798E
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba71bd;
/* rgb */ color: rgb(186, 113, 189);
/* oklch */ color: oklch(65.4% 0.136 325.6);
Tailwind
colors: {
  custom: {
    50: '#d09bd1',
    500: '#ba71bd',
    950: '#000000',
  },
}
SCSS
$custom: #ba71bd;
$custom-light: #d09bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71bd",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 297.632,
    "s": 36.538,
    "l": 59.216
  },
  "oklch": {
    "l": 0.65413,
    "c": 0.13572,
    "h": 325.6
  },
  "luminance": 0.25923
}

Semantic roles & 50–950 ramp

primary
#BA71BD
secondary
#B7D4B6
accent
#CD5B60
background
#FCF9FC
surface
#F9F2F9
border
#D2CCD2
text
#140E14
muted
#827E82

Preview Lab

Preview with #BA71BD

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

Preview Lab → · Contrast checker → · Palette generator →

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