#BA71DB#BA71DB

#BA71DB is a light, vivid purple. Relative luminance 0.274; OKLCH L 66.9% C 0.167 H 314.4°. Best body text is #000000 at 6.47:1 contrast (WCAG AA passes).

Color values

HEX#BA71DB
RGBrgb(186, 113, 219)
HSLhsl(281, 60%, 65%)
HSVhsv(281, 48%, 86%)
CMYKcmyk(15.1%, 48.4%, 0%, 14.1%)
CIE-LABlab(59.31, 46.74, -42.96)
CIE-LCHlch(59.31, 63.48, 317.41°)
OKLaboklab(66.86% 0.1172 -0.1195)
OKLCHoklch(66.86% 0.167 314.4)
XYZxyz(38.9390, 27.3649, 70.2348)
Luminance0.2736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71DB #92DB71
analogous
#8571DB #BA71DB #DB71C7
triadic
#BA71DB #DBBA71 #71DBBA
tetradic
#BA71DB #DB8571 #92DB71 #71C7DB
square
#BA71DB #DB8571 #92DB71 #71C7DB
split-complementary
#BA71DB #C7DB71 #71DB85
monochromatic
#802AA7 #A240CF #BA71DB #D2A2E7 #E9D3F4

Accessibility & contrast

On white

3.24
#BA71DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.47
#BA71DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71DB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71DB#FFFFFF#000000##000000
##BA71DB1.003.246.476.47
#FFFFFF3.241.0021.0021.00
#0000006.4721.001.001.00
##0000006.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8BDF
Deuteranopia (green-blind)
#7091D8
Tritanopia (blue-blind)
#B8819C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba71db;
/* rgb */ color: rgb(186, 113, 219);
/* oklch */ color: oklch(66.9% 0.167 314.4);
Tailwind
colors: {
  custom: {
    50: '#d19ce6',
    500: '#ba71db',
    950: '#000000',
  },
}
SCSS
$custom: #ba71db;
$custom-light: #d19ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71db",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 219
  },
  "hsl": {
    "h": 281.321,
    "s": 59.551,
    "l": 65.098
  },
  "oklch": {
    "l": 0.66857,
    "c": 0.16734,
    "h": 314.4
  },
  "luminance": 0.27364
}

Semantic roles & 50–950 ramp

primary
#BA71DB
secondary
#CDE6C2
accent
#C71E53
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71DB

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

Preview Lab → · Contrast checker → · Palette generator →

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