#BA71FE#BA71FE

#BA71FE is a light, highly saturated violet. Relative luminance 0.294; OKLCH L 68.8% C 0.206 H 305.5°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#BA71FE
RGBrgb(186, 113, 254)
HSLhsl(271, 99%, 72%)
HSVhsv(271, 56%, 100%)
CMYKcmyk(26.8%, 55.5%, 0%, 0.4%)
CIE-LABlab(61.14, 54.42, -59.51)
CIE-LCHlch(61.14, 80.64, 312.44°)
OKLaboklab(68.8% 0.1199 -0.1677)
OKLCHoklch(68.8% 0.206 305.5)
XYZxyz(44.0404, 29.4054, 97.1024)
Luminance0.2940 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71FE #B5FE71
analogous
#7471FE #BA71FE #FE71FB
triadic
#BA71FE #FEBA71 #71FEBA
tetradic
#BA71FE #FE7471 #B5FE71 #71FBFE
square
#BA71FE #FE7471 #B5FE71 #71FBFE
split-complementary
#BA71FE #FBFE71 #71FE74
monochromatic
#7F02F3 #9C34FE #BA71FE #D8AEFE #F0E1FF

Accessibility & contrast

On white

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

On black

6.88
#BA71FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71FE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71FE#FFFFFF#000000##000000
##BA71FE1.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3C91FF
Deuteranopia (green-blind)
#5894FB
Tritanopia (blue-blind)
#AF8CAD
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba71fe;
/* rgb */ color: rgb(186, 113, 254);
/* oklch */ color: oklch(68.8% 0.206 305.5);
Tailwind
colors: {
  custom: {
    50: '#d29cff',
    500: '#ba71fe',
    950: '#000000',
  },
}
SCSS
$custom: #ba71fe;
$custom-light: #d29cff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71fe",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 271.064,
    "s": 98.601,
    "l": 71.961
  },
  "oklch": {
    "l": 0.68799,
    "c": 0.20615,
    "h": 305.5
  },
  "luminance": 0.29405
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA71FE

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

Preview Lab → · Contrast checker → · Palette generator →

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