#BA71F8#BA71F8

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

Color values

HEX#BA71F8
RGBrgb(186, 113, 248)
HSLhsl(272, 91%, 71%)
HSVhsv(272, 54%, 97%)
CMYKcmyk(25%, 54.4%, 0%, 2.7%)
CIE-LABlab(60.81, 53.06, -56.74)
CIE-LCHlch(60.81, 77.68, 313.08°)
OKLaboklab(68.45% 0.1196 -0.1596)
OKLCHoklch(68.45% 0.199 306.9)
XYZxyz(43.0946, 29.0271, 92.1213)
Luminance0.2903 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F8 #AFF871
analogous
#7671F8 #BA71F8 #F871F3
triadic
#BA71F8 #F8BA71 #71F8BA
tetradic
#BA71F8 #F87671 #AFF871 #71F3F8
square
#BA71F8 #F87671 #AFF871 #71F3F8
split-complementary
#BA71F8 #F3F871 #71F876
monochromatic
#800BE3 #9E37F5 #BA71F8 #D6ABFB #F1E2FE

Accessibility & contrast

On white

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

On black

6.81
#BA71F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F8
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F8#FFFFFF#000000##000000
##BA71F81.003.096.816.81
#FFFFFF3.091.0021.0021.00
#0000006.8121.001.001.00
##0000006.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4390FC
Deuteranopia (green-blind)
#5D93F5
Tritanopia (blue-blind)
#B08AAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71f8;
/* rgb */ color: rgb(186, 113, 248);
/* oklch */ color: oklch(68.4% 0.199 306.9);
Tailwind
colors: {
  custom: {
    50: '#d29cfb',
    500: '#ba71f8',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f8;
$custom-light: #d29cfb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f8",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 248
  },
  "hsl": {
    "h": 272.444,
    "s": 90.604,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68448,
    "c": 0.19946,
    "h": 306.9
  },
  "luminance": 0.29027
}

Semantic roles & 50–950 ramp

primary
#BA71F8
secondary
#E1F5D0
accent
#E60069
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F8

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

Preview Lab → · Contrast checker → · Palette generator →

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