#BA71FF#BA71FF

#BA71FF is a light, highly saturated violet. Relative luminance 0.295; OKLCH L 68.9% C 0.207 H 305.3°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#BA71FF
RGBrgb(186, 113, 255)
HSLhsl(271, 100%, 72%)
HSVhsv(271, 56%, 100%)
CMYKcmyk(27.1%, 55.7%, 0%, 0%)
CIE-LABlab(61.19, 54.65, -59.97)
CIE-LCHlch(61.19, 81.14, 312.34°)
OKLaboklab(68.86% 0.1199 -0.1691)
OKLCHoklch(68.86% 0.207 305.3)
XYZxyz(44.2010, 29.4696, 97.9480)
Luminance0.2947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71FF #B6FF71
analogous
#7371FF #BA71FF #FF71FD
triadic
#BA71FF #FFBA71 #71FFBA
tetradic
#BA71FF #FF7371 #B6FF71 #71FDFF
square
#BA71FF #FF7371 #B6FF71 #71FDFF
split-complementary
#BA71FF #FDFF71 #71FF73
monochromatic
#7E00F6 #9C34FF #BA71FF #D8AEFF #F0E0FF

Accessibility & contrast

On white

3.05
#BA71FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.89
#BA71FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71FF
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71FF#FFFFFF#000000##000000
##BA71FF1.003.056.896.89
#FFFFFF3.051.0021.0021.00
#0000006.8921.001.001.00
##0000006.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B91FF
Deuteranopia (green-blind)
#5794FC
Tritanopia (blue-blind)
#AE8CAD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba71ff;
/* rgb */ color: rgb(186, 113, 255);
/* oklch */ color: oklch(68.9% 0.207 305.3);
Tailwind
colors: {
  custom: {
    50: '#d29cff',
    500: '#ba71ff',
    950: '#000000',
  },
}
SCSS
$custom: #ba71ff;
$custom-light: #d29cff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71ff",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 255
  },
  "hsl": {
    "h": 270.845,
    "s": 100,
    "l": 72.157
  },
  "oklch": {
    "l": 0.68858,
    "c": 0.20727,
    "h": 305.3
  },
  "luminance": 0.29469
}

Semantic roles & 50–950 ramp

primary
#BA71FF
secondary
#E5F7D4
accent
#E60070
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA71FF

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

Preview Lab → · Contrast checker → · Palette generator →

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