#BA71DD#BA71DD

#BA71DD is a light, vivid purple. Relative luminance 0.275; OKLCH L 67.0% C 0.170 H 313.8°. Best body text is #000000 at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#BA71DD
RGBrgb(186, 113, 221)
HSLhsl(281, 61%, 65%)
HSVhsv(281, 49%, 87%)
CMYKcmyk(15.8%, 48.9%, 0%, 13.3%)
CIE-LABlab(59.41, 47.16, -43.93)
CIE-LCHlch(59.41, 64.45, 317.03°)
OKLaboklab(66.96% 0.1174 -0.1223)
OKLCHoklch(66.96% 0.17 313.8)
XYZxyz(39.2038, 27.4708, 71.6298)
Luminance0.2747 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71DD #94DD71
analogous
#8471DD #BA71DD #DD71CA
triadic
#BA71DD #DDBA71 #71DDBA
tetradic
#BA71DD #DD8471 #94DD71 #71CADD
square
#BA71DD #DD8471 #94DD71 #71CADD
split-complementary
#BA71DD #CADD71 #71DD84
monochromatic
#8129AB #A240D1 #BA71DD #D2A2E9 #EAD4F5

Accessibility & contrast

On white

3.23
#BA71DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.49
#BA71DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71DD
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71DD#FFFFFF#000000##000000
##BA71DD1.003.236.496.49
#FFFFFF3.231.0021.0021.00
#0000006.4921.001.001.00
##0000006.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#598BE1
Deuteranopia (green-blind)
#6F91DA
Tritanopia (blue-blind)
#B7829D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba71dd;
/* rgb */ color: rgb(186, 113, 221);
/* oklch */ color: oklch(67.0% 0.170 313.8);
Tailwind
colors: {
  custom: {
    50: '#d19ce8',
    500: '#ba71dd',
    950: '#000000',
  },
}
SCSS
$custom: #ba71dd;
$custom-light: #d19ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71dd",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 221
  },
  "hsl": {
    "h": 280.556,
    "s": 61.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.66961,
    "c": 0.16954,
    "h": 313.8
  },
  "luminance": 0.2747
}

Semantic roles & 50–950 ramp

primary
#BA71DD
secondary
#CFE7C3
accent
#C91C54
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71DD

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

Preview Lab → · Contrast checker → · Palette generator →

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