#BA71CD#BA71CD

#BA71CD is a light, vivid purple. Relative luminance 0.267; OKLCH L 66.2% C 0.152 H 319.1°. Best body text is #000000 at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#BA71CD
RGBrgb(186, 113, 205)
HSLhsl(288, 48%, 62%)
HSVhsv(288, 45%, 80%)
CMYKcmyk(9.3%, 44.9%, 0%, 19.6%)
CIE-LABlab(58.66, 43.85, -36.10)
CIE-LCHlch(58.66, 56.80, 320.54°)
OKLaboklab(66.16% 0.1151 -0.0996)
OKLCHoklch(66.16% 0.152 319.1)
XYZxyz(37.1728, 26.6584, 60.9332)
Luminance0.2666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71CD #84CD71
analogous
#8C71CD #BA71CD #CD71B2
triadic
#BA71CD #CDBA71 #71CDBA
tetradic
#BA71CD #CD8C71 #84CD71 #71B2CD
square
#BA71CD #CD8C71 #84CD71 #71B2CD
split-complementary
#BA71CD #B2CD71 #71CD8C
monochromatic
#7D3391 #A444BD #BA71CD #D09EDD #E6CCED

Accessibility & contrast

On white

3.32
#BA71CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.33
#BA71CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71CD
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71CD#FFFFFF#000000##000000
##BA71CD1.003.326.336.33
#FFFFFF3.321.0021.0021.00
#0000006.3321.001.001.00
##0000006.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388D0
Deuteranopia (green-blind)
#7790CA
Tritanopia (blue-blind)
#BB7D95
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #ba71cd;
/* rgb */ color: rgb(186, 113, 205);
/* oklch */ color: oklch(66.2% 0.152 319.1);
Tailwind
colors: {
  custom: {
    50: '#d09cdc',
    500: '#ba71cd',
    950: '#000000',
  },
}
SCSS
$custom: #ba71cd;
$custom-light: #d09cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71cd",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 287.609,
    "s": 47.917,
    "l": 62.353
  },
  "oklch": {
    "l": 0.66157,
    "c": 0.15224,
    "h": 319.1
  },
  "luminance": 0.26657
}

Semantic roles & 50–950 ramp

primary
#BA71CD
secondary
#C3DEBC
accent
#BB2A48
background
#FDF9FD
surface
#FAF2FB
border
#D3CCD4
text
#140E15
muted
#837E83

Preview Lab

Preview with #BA71CD

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

Preview Lab → · Contrast checker → · Palette generator →

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