#BA71F7#BA71F7

#BA71F7 is a light, vivid violet. Relative luminance 0.290; OKLCH L 68.4% C 0.198 H 307.1°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#BA71F7
RGBrgb(186, 113, 247)
HSLhsl(273, 89%, 71%)
HSVhsv(273, 54%, 97%)
CMYKcmyk(24.7%, 54.3%, 0%, 3.1%)
CIE-LABlab(60.75, 52.84, -56.27)
CIE-LCHlch(60.75, 77.19, 313.20°)
OKLaboklab(68.39% 0.1196 -0.1582)
OKLCHoklch(68.39% 0.198 307.1)
XYZxyz(42.9399, 28.9652, 91.3064)
Luminance0.2897 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F7 #AEF771
analogous
#7771F7 #BA71F7 #F771F1
triadic
#BA71F7 #F7BA71 #71F7BA
tetradic
#BA71F7 #F77771 #AEF771 #71F1F7
square
#BA71F7 #F77771 #AEF771 #71F1F7
split-complementary
#BA71F7 #F1F771 #71F777
monochromatic
#800DE1 #9E37F4 #BA71F7 #D6ABFA #F1E2FD

Accessibility & contrast

On white

3.09
#BA71F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#BA71F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F7
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F7#FFFFFF#000000##000000
##BA71F71.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4490FB
Deuteranopia (green-blind)
#5D93F4
Tritanopia (blue-blind)
#B18AA9
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71f7;
/* rgb */ color: rgb(186, 113, 247);
/* oklch */ color: oklch(68.4% 0.198 307.1);
Tailwind
colors: {
  custom: {
    50: '#d29cfa',
    500: '#ba71f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f7;
$custom-light: #d29cfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f7",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 247
  },
  "hsl": {
    "h": 272.687,
    "s": 89.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.6839,
    "c": 0.19835,
    "h": 307.1
  },
  "luminance": 0.28965
}

Semantic roles & 50–950 ramp

primary
#BA71F7
secondary
#E0F4D0
accent
#E60068
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F7

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

Preview Lab → · Contrast checker → · Palette generator →

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