#BA71CF#BA71CF

#BA71CF is a light, vivid purple. Relative luminance 0.268; OKLCH L 66.3% C 0.154 H 318.4°. Best body text is #000000 at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#BA71CF
RGBrgb(186, 113, 207)
HSLhsl(287, 49%, 63%)
HSVhsv(287, 45%, 81%)
CMYKcmyk(10.1%, 45.4%, 0%, 18.8%)
CIE-LABlab(58.75, 44.26, -37.09)
CIE-LCHlch(58.75, 57.74, 320.04°)
OKLaboklab(66.25% 0.1154 -0.1025)
OKLCHoklch(66.25% 0.154 318.4)
XYZxyz(37.4158, 26.7556, 62.2128)
Luminance0.2675 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CF #86CF71
analogous
#8B71CF #BA71CF #CF71B5
triadic
#BA71CF #CFBA71 #71CFBA
tetradic
#BA71CF #CF8B71 #86CF71 #71B5CF
square
#BA71CF #CF8B71 #86CF71 #71B5CF
split-complementary
#BA71CF #B5CF71 #71CF8B
monochromatic
#7E3294 #A443C0 #BA71CF #D09FDE #E6CCEE

Accessibility & contrast

On white

3.31
#BA71CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.35
#BA71CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CF
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CF#FFFFFF#000000##000000
##BA71CF1.003.316.356.35
#FFFFFF3.311.0021.0021.00
#0000006.3521.001.001.00
##0000006.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6188D2
Deuteranopia (green-blind)
#7690CC
Tritanopia (blue-blind)
#BA7E96
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71cf;
/* rgb */ color: rgb(186, 113, 207);
/* oklch */ color: oklch(66.3% 0.154 318.4);
Tailwind
colors: {
  custom: {
    50: '#d09cde',
    500: '#ba71cf',
    950: '#000000',
  },
}
SCSS
$custom: #ba71cf;
$custom-light: #d09cde;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71cf",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 286.596,
    "s": 49.474,
    "l": 62.745
  },
  "oklch": {
    "l": 0.66254,
    "c": 0.15436,
    "h": 318.4
  },
  "luminance": 0.26754
}

Semantic roles & 50–950 ramp

primary
#BA71CF
secondary
#C4DFBD
accent
#BD294A
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CF

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

Preview Lab → · Contrast checker → · Palette generator →

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