#BA71F2#BA71F2

#BA71F2 is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.1% C 0.193 H 308.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#BA71F2
RGBrgb(186, 113, 242)
HSLhsl(274, 83%, 70%)
HSVhsv(274, 53%, 95%)
CMYKcmyk(23.1%, 53.3%, 0%, 5.1%)
CIE-LABlab(60.48, 51.72, -53.94)
CIE-LCHlch(60.48, 74.72, 313.80°)
OKLaboklab(68.1% 0.1193 -0.1514)
OKLCHoklch(68.1% 0.193 308.2)
XYZxyz(42.1787, 28.6607, 87.2973)
Luminance0.2866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F2 #A9F271
analogous
#7971F2 #BA71F2 #F271EA
triadic
#BA71F2 #F2BA71 #71F2BA
tetradic
#BA71F2 #F27971 #A9F271 #71EAF2
square
#BA71F2 #F27971 #A9F271 #71EAF2
split-complementary
#BA71F2 #EAF271 #71F279
monochromatic
#8114D5 #9F39ED #BA71F2 #D5A9F7 #F0E1FC

Accessibility & contrast

On white

3.12
#BA71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.73
#BA71F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F2
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F2#FFFFFF#000000##000000
##BA71F21.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#498FF6
Deuteranopia (green-blind)
#6193EF
Tritanopia (blue-blind)
#B288A7
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba71f2;
/* rgb */ color: rgb(186, 113, 242);
/* oklch */ color: oklch(68.1% 0.193 308.2);
Tailwind
colors: {
  custom: {
    50: '#d29cf7',
    500: '#ba71f2',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f2;
$custom-light: #d29cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f2",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 242
  },
  "hsl": {
    "h": 273.953,
    "s": 83.226,
    "l": 69.608
  },
  "oklch": {
    "l": 0.68104,
    "c": 0.19278,
    "h": 308.2
  },
  "luminance": 0.2866
}

Semantic roles & 50–950 ramp

primary
#BA71F2
secondary
#DDF2CD
accent
#E00664
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F2

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

Preview Lab → · Contrast checker → · Palette generator →

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