#BA71DF#BA71DF

#BA71DF is a light, vivid violet. Relative luminance 0.276; OKLCH L 67.1% C 0.172 H 313.3°. Best body text is #000000 at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#BA71DF
RGBrgb(186, 113, 223)
HSLhsl(280, 63%, 66%)
HSVhsv(280, 49%, 87%)
CMYKcmyk(16.6%, 49.3%, 0%, 12.5%)
CIE-LABlab(59.51, 47.58, -44.90)
CIE-LCHlch(59.51, 65.42, 316.66°)
OKLaboklab(67.07% 0.1177 -0.1251)
OKLCHoklch(67.07% 0.172 313.3)
XYZxyz(39.4719, 27.5780, 73.0415)
Luminance0.2758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71DF #96DF71
analogous
#8371DF #BA71DF #DF71CD
triadic
#BA71DF #DFBA71 #71DFBA
tetradic
#BA71DF #DF8371 #96DF71 #71CDDF
square
#BA71DF #DF8371 #96DF71 #71CDDF
split-complementary
#BA71DF #CDDF71 #71DF83
monochromatic
#8127AE #A23FD4 #BA71DF #D2A3EA #EBD5F6

Accessibility & contrast

On white

3.22
#BA71DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.52
#BA71DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71DF
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71DF#FFFFFF#000000##000000
##BA71DF1.003.226.526.52
#FFFFFF3.221.0021.0021.00
#0000006.5221.001.001.00
##0000006.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#588BE3
Deuteranopia (green-blind)
#6D91DC
Tritanopia (blue-blind)
#B7829E
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba71df;
/* rgb */ color: rgb(186, 113, 223);
/* oklch */ color: oklch(67.1% 0.172 313.3);
Tailwind
colors: {
  custom: {
    50: '#d19ce9',
    500: '#ba71df',
    950: '#000000',
  },
}
SCSS
$custom: #ba71df;
$custom-light: #d19ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71df",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 223
  },
  "hsl": {
    "h": 279.818,
    "s": 63.218,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67066,
    "c": 0.17173,
    "h": 313.3
  },
  "luminance": 0.27577
}

Semantic roles & 50–950 ramp

primary
#BA71DF
secondary
#D0E8C4
accent
#CB1B56
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71DF

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

Preview Lab → · Contrast checker → · Palette generator →

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