#BA71F5#BA71F5

#BA71F5 is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.3% C 0.196 H 307.5°. Best body text is #000000 at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#BA71F5
RGBrgb(186, 113, 245)
HSLhsl(273, 87%, 70%)
HSVhsv(273, 54%, 96%)
CMYKcmyk(24.1%, 53.9%, 0%, 3.9%)
CIE-LABlab(60.64, 52.39, -55.34)
CIE-LCHlch(60.64, 76.20, 313.43°)
OKLaboklab(68.27% 0.1195 -0.1555)
OKLCHoklch(68.27% 0.196 307.5)
XYZxyz(42.6329, 28.8424, 89.6897)
Luminance0.2884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71F5 #ACF571
analogous
#7871F5 #BA71F5 #F571EE
triadic
#BA71F5 #F5BA71 #71F5BA
tetradic
#BA71F5 #F57871 #ACF571 #71EEF5
square
#BA71F5 #F57871 #ACF571 #71EEF5
split-complementary
#BA71F5 #EEF571 #71F578
monochromatic
#8110DC #9E38F1 #BA71F5 #D6AAF9 #F1E2FD

Accessibility & contrast

On white

3.10
#BA71F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.77
#BA71F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71F5
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71F5#FFFFFF#000000##000000
##BA71F51.003.106.776.77
#FFFFFF3.101.0021.0021.00
#0000006.7721.001.001.00
##0000006.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#468FF9
Deuteranopia (green-blind)
#5F93F2
Tritanopia (blue-blind)
#B189A8
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba71f5;
/* rgb */ color: rgb(186, 113, 245);
/* oklch */ color: oklch(68.3% 0.196 307.5);
Tailwind
colors: {
  custom: {
    50: '#d29cf9',
    500: '#ba71f5',
    950: '#000000',
  },
}
SCSS
$custom: #ba71f5;
$custom-light: #d29cf9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71f5",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 273.182,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.68275,
    "c": 0.19613,
    "h": 307.5
  },
  "luminance": 0.28842
}

Semantic roles & 50–950 ramp

primary
#BA71F5
secondary
#DFF3CF
accent
#E30267
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA71F5

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

Preview Lab → · Contrast checker → · Palette generator →

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