#BA71FC#BA71FC

#BA71FC is a light, highly saturated violet. Relative luminance 0.293; OKLCH L 68.7% C 0.204 H 306.0°. Best body text is #000000 at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#BA71FC
RGBrgb(186, 113, 252)
HSLhsl(272, 96%, 72%)
HSVhsv(272, 55%, 99%)
CMYKcmyk(26.2%, 55.2%, 0%, 1.2%)
CIE-LABlab(61.03, 53.96, -58.59)
CIE-LCHlch(61.03, 79.66, 312.65°)
OKLaboklab(68.68% 0.1198 -0.165)
OKLCHoklch(68.68% 0.204 306)
XYZxyz(43.7218, 29.2780, 95.4245)
Luminance0.2928 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71FC #B3FC71
analogous
#7571FC #BA71FC #FC71F8
triadic
#BA71FC #FCBA71 #71FCBA
tetradic
#BA71FC #FC7571 #B3FC71 #71F8FC
square
#BA71FC #FC7571 #B3FC71 #71F8FC
split-complementary
#BA71FC #F8FC71 #71FC75
monochromatic
#7F05EE #9D35FB #BA71FC #D7ADFD #F0E1FE

Accessibility & contrast

On white

3.06
#BA71FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.86
#BA71FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71FC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71FC#FFFFFF#000000##000000
##BA71FC1.003.066.866.86
#FFFFFF3.061.0021.0021.00
#0000006.8621.001.001.00
##0000006.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F91FF
Deuteranopia (green-blind)
#5994F9
Tritanopia (blue-blind)
#AF8BAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71fc;
/* rgb */ color: rgb(186, 113, 252);
/* oklch */ color: oklch(68.7% 0.204 306.0);
Tailwind
colors: {
  custom: {
    50: '#d29cfe',
    500: '#ba71fc',
    950: '#000000',
  },
}
SCSS
$custom: #ba71fc;
$custom-light: #d29cfe;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71fc",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 252
  },
  "hsl": {
    "h": 271.511,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.68681,
    "c": 0.20392,
    "h": 306
  },
  "luminance": 0.29278
}

Semantic roles & 50–950 ramp

primary
#BA71FC
secondary
#E4F6D3
accent
#E6006D
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA71FC

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

Preview Lab → · Contrast checker → · Palette generator →

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