#BA71DC#BA71DC

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

Color values

HEX#BA71DC
RGBrgb(186, 113, 220)
HSLhsl(281, 60%, 65%)
HSVhsv(281, 49%, 86%)
CMYKcmyk(15.5%, 48.6%, 0%, 13.7%)
CIE-LABlab(59.36, 46.95, -43.45)
CIE-LCHlch(59.36, 63.97, 317.22°)
OKLaboklab(66.91% 0.1173 -0.1209)
OKLCHoklch(66.91% 0.168 314.1)
XYZxyz(39.0710, 27.4177, 70.9302)
Luminance0.2742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71DC #93DC71
analogous
#8571DC #BA71DC #DC71C8
triadic
#BA71DC #DCBA71 #71DCBA
tetradic
#BA71DC #DC8571 #93DC71 #71C8DC
square
#BA71DC #DC8571 #93DC71 #71C8DC
split-complementary
#BA71DC #C8DC71 #71DC85
monochromatic
#812AA9 #A240D0 #BA71DC #D2A2E8 #EAD3F4

Accessibility & contrast

On white

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

On black

6.48
#BA71DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71DC
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71DC#FFFFFF#000000##000000
##BA71DC1.003.246.486.48
#FFFFFF3.241.0021.0021.00
#0000006.4821.001.001.00
##0000006.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8BE0
Deuteranopia (green-blind)
#6F91D9
Tritanopia (blue-blind)
#B7819C
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba71dc;
/* rgb */ color: rgb(186, 113, 220);
/* oklch */ color: oklch(66.9% 0.168 314.1);
Tailwind
colors: {
  custom: {
    50: '#d19ce7',
    500: '#ba71dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba71dc;
$custom-light: #d19ce7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71dc",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 280.935,
    "s": 60.452,
    "l": 65.294
  },
  "oklch": {
    "l": 0.66909,
    "c": 0.16844,
    "h": 314.1
  },
  "luminance": 0.27417
}

Semantic roles & 50–950 ramp

primary
#BA71DC
secondary
#CEE6C2
accent
#C81D54
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71DC

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

Preview Lab → · Contrast checker → · Palette generator →

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