#BA71F9#BA71F9

#BA71F9 is a light, highly saturated violet. Relative luminance 0.291; OKLCH L 68.5% C 0.201 H 306.6°. Best body text is #000000 at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#BA71F9
RGBrgb(186, 113, 249)
HSLhsl(272, 92%, 71%)
HSVhsv(272, 55%, 98%)
CMYKcmyk(25.3%, 54.6%, 0%, 2.4%)
CIE-LABlab(60.86, 53.29, -57.20)
CIE-LCHlch(60.86, 78.17, 312.97°)
OKLaboklab(68.51% 0.1197 -0.161)
OKLCHoklch(68.51% 0.201 306.6)
XYZxyz(43.2502, 29.0893, 92.9405)
Luminance0.2909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F9 #B0F971
analogous
#7671F9 #BA71F9 #F971F4
triadic
#BA71F9 #F9BA71 #71F9BA
tetradic
#BA71F9 #F97671 #B0F971 #71F4F9
square
#BA71F9 #F97671 #B0F971 #71F4F9
split-complementary
#BA71F9 #F4F971 #71F976
monochromatic
#800AE6 #9D36F7 #BA71F9 #D7ACFB #F1E2FE

Accessibility & contrast

On white

3.08
#BA71F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.82
#BA71F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F9
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F9#FFFFFF#000000##000000
##BA71F91.003.086.826.82
#FFFFFF3.081.0021.0021.00
#0000006.8221.001.001.00
##0000006.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4290FE
Deuteranopia (green-blind)
#5C93F6
Tritanopia (blue-blind)
#B08AAA
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71f9;
/* rgb */ color: rgb(186, 113, 249);
/* oklch */ color: oklch(68.5% 0.201 306.6);
Tailwind
colors: {
  custom: {
    50: '#d29cfc',
    500: '#ba71f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f9;
$custom-light: #d29cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f9",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 249
  },
  "hsl": {
    "h": 272.206,
    "s": 91.892,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68506,
    "c": 0.20058,
    "h": 306.6
  },
  "luminance": 0.29089
}

Semantic roles & 50–950 ramp

primary
#BA71F9
secondary
#E2F5D1
accent
#E6006A
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F9

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

Preview Lab → · Contrast checker → · Palette generator →

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