#BA71F4#BA71F4

#BA71F4 is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.2% C 0.195 H 307.8°. Best body text is #000000 at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#BA71F4
RGBrgb(186, 113, 244)
HSLhsl(273, 86%, 70%)
HSVhsv(273, 54%, 96%)
CMYKcmyk(23.8%, 53.7%, 0%, 4.3%)
CIE-LABlab(60.59, 52.16, -54.87)
CIE-LCHlch(60.59, 75.71, 313.55°)
OKLaboklab(68.22% 0.1195 -0.1541)
OKLCHoklch(68.22% 0.195 307.8)
XYZxyz(42.4807, 28.7815, 88.8879)
Luminance0.2878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F4 #ABF471
analogous
#7871F4 #BA71F4 #F471ED
triadic
#BA71F4 #F4BA71 #71F4BA
tetradic
#BA71F4 #F47871 #ABF471 #71EDF4
square
#BA71F4 #F47871 #ABF471 #71EDF4
split-complementary
#BA71F4 #EDF471 #71F478
monochromatic
#8111DA #9E38F0 #BA71F4 #D6AAF8 #F1E3FD

Accessibility & contrast

On white

3.11
#BA71F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.76
#BA71F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F4
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F4#FFFFFF#000000##000000
##BA71F41.003.116.766.76
#FFFFFF3.111.0021.0021.00
#0000006.7621.001.001.00
##0000006.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#478FF8
Deuteranopia (green-blind)
#6093F1
Tritanopia (blue-blind)
#B189A8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba71f4;
/* rgb */ color: rgb(186, 113, 244);
/* oklch */ color: oklch(68.2% 0.195 307.8);
Tailwind
colors: {
  custom: {
    50: '#d29cf8',
    500: '#ba71f4',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f4;
$custom-light: #d29cf8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f4",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 244
  },
  "hsl": {
    "h": 273.435,
    "s": 85.621,
    "l": 70
  },
  "oklch": {
    "l": 0.68217,
    "c": 0.19501,
    "h": 307.8
  },
  "luminance": 0.28781
}

Semantic roles & 50–950 ramp

primary
#BA71F4
secondary
#DEF3CE
accent
#E20366
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F4

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

Preview Lab → · Contrast checker → · Palette generator →

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