#BA71FB#BA71FB

#BA71FB is a light, highly saturated violet. Relative luminance 0.292; OKLCH L 68.6% C 0.203 H 306.2°. Best body text is #000000 at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#BA71FB
RGBrgb(186, 113, 251)
HSLhsl(272, 95%, 71%)
HSVhsv(272, 55%, 98%)
CMYKcmyk(25.9%, 55%, 0%, 1.6%)
CIE-LABlab(60.97, 53.74, -58.13)
CIE-LCHlch(60.97, 79.16, 312.75°)
OKLaboklab(68.62% 0.1198 -0.1637)
OKLCHoklch(68.62% 0.203 306.2)
XYZxyz(43.5638, 29.2148, 94.5921)
Luminance0.2921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71FB #B2FB71
analogous
#7571FB #BA71FB #FB71F7
triadic
#BA71FB #FBBA71 #71FBBA
tetradic
#BA71FB #FB7571 #B2FB71 #71F7FB
square
#BA71FB #FB7571 #B2FB71 #71F7FB
split-complementary
#BA71FB #F7FB71 #71FB75
monochromatic
#7F07EB #9D35F9 #BA71FB #D7ADFD #F1E1FE

Accessibility & contrast

On white

3.07
#BA71FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.84
#BA71FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71FB
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71FB#FFFFFF#000000##000000
##BA71FB1.003.076.846.84
#FFFFFF3.071.0021.0021.00
#0000006.8421.001.001.00
##0000006.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4091FF
Deuteranopia (green-blind)
#5A94F8
Tritanopia (blue-blind)
#AF8BAB
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71fb;
/* rgb */ color: rgb(186, 113, 251);
/* oklch */ color: oklch(68.6% 0.203 306.2);
Tailwind
colors: {
  custom: {
    50: '#d29cfd',
    500: '#ba71fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba71fb;
$custom-light: #d29cfd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71fb",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 251
  },
  "hsl": {
    "h": 271.739,
    "s": 94.521,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68622,
    "c": 0.20281,
    "h": 306.2
  },
  "luminance": 0.29214
}

Semantic roles & 50–950 ramp

primary
#BA71FB
secondary
#E3F6D2
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA71FB

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

Preview Lab → · Contrast checker → · Palette generator →

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