#BA71F6#BA71F6

#BA71F6 is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.3% C 0.197 H 307.3°. Best body text is #000000 at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#BA71F6
RGBrgb(186, 113, 246)
HSLhsl(273, 88%, 70%)
HSVhsv(273, 54%, 96%)
CMYKcmyk(24.4%, 54.1%, 0%, 3.5%)
CIE-LABlab(60.70, 52.61, -55.81)
CIE-LCHlch(60.70, 76.70, 313.31°)
OKLaboklab(68.33% 0.1196 -0.1569)
OKLCHoklch(68.33% 0.197 307.3)
XYZxyz(42.7860, 28.9037, 90.4959)
Luminance0.2890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F6 #ADF671
analogous
#7771F6 #BA71F6 #F671F0
triadic
#BA71F6 #F6BA71 #71F6BA
tetradic
#BA71F6 #F67771 #ADF671 #71F0F6
square
#BA71F6 #F67771 #ADF671 #71F0F6
split-complementary
#BA71F6 #F0F671 #71F677
monochromatic
#800EDE #9E37F2 #BA71F6 #D6ABFA #F1E2FD

Accessibility & contrast

On white

3.10
#BA71F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.78
#BA71F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F6
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F6#FFFFFF#000000##000000
##BA71F61.003.106.786.78
#FFFFFF3.101.0021.0021.00
#0000006.7821.001.001.00
##0000006.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4590FA
Deuteranopia (green-blind)
#5E93F3
Tritanopia (blue-blind)
#B189A9
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba71f6;
/* rgb */ color: rgb(186, 113, 246);
/* oklch */ color: oklch(68.3% 0.197 307.3);
Tailwind
colors: {
  custom: {
    50: '#d29cfa',
    500: '#ba71f6',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f6;
$custom-light: #d29cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f6",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 246
  },
  "hsl": {
    "h": 272.932,
    "s": 88.079,
    "l": 70.392
  },
  "oklch": {
    "l": 0.68332,
    "c": 0.19724,
    "h": 307.3
  },
  "luminance": 0.28903
}

Semantic roles & 50–950 ramp

primary
#BA71F6
secondary
#E0F4CF
accent
#E50168
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F6

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

Preview Lab → · Contrast checker → · Palette generator →

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