#BA71FD#BA71FD

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

Color values

HEX#BA71FD
RGBrgb(186, 113, 253)
HSLhsl(271, 97%, 72%)
HSVhsv(271, 55%, 99%)
CMYKcmyk(26.5%, 55.3%, 0%, 0.8%)
CIE-LABlab(61.08, 54.19, -59.05)
CIE-LCHlch(61.08, 80.15, 312.54°)
OKLaboklab(68.74% 0.1198 -0.1664)
OKLCHoklch(68.74% 0.205 305.8)
XYZxyz(43.8807, 29.3415, 96.2613)
Luminance0.2934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71FD #B4FD71
analogous
#7471FD #BA71FD #FD71FA
triadic
#BA71FD #FDBA71 #71FDBA
tetradic
#BA71FD #FD7471 #B4FD71 #71FAFD
square
#BA71FD #FD7471 #B4FD71 #71FAFD
split-complementary
#BA71FD #FAFD71 #71FD74
monochromatic
#7F03F0 #9D35FC #BA71FD #D7ADFE #F0E1FF

Accessibility & contrast

On white

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

On black

6.87
#BA71FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71FD
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71FD#FFFFFF#000000##000000
##BA71FD1.003.066.876.87
#FFFFFF3.061.0021.0021.00
#0000006.8721.001.001.00
##0000006.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D91FF
Deuteranopia (green-blind)
#5894FA
Tritanopia (blue-blind)
#AF8BAC
Achromatopsia (no color)
#939393

Design tokens & code

CSS
--color: #ba71fd;
/* rgb */ color: rgb(186, 113, 253);
/* oklch */ color: oklch(68.7% 0.205 305.8);
Tailwind
colors: {
  custom: {
    50: '#d29cff',
    500: '#ba71fd',
    950: '#000000',
  },
}
SCSS
$custom: #ba71fd;
$custom-light: #d29cff;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71fd",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 253
  },
  "hsl": {
    "h": 271.286,
    "s": 97.222,
    "l": 71.765
  },
  "oklch": {
    "l": 0.6874,
    "c": 0.20504,
    "h": 305.8
  },
  "luminance": 0.29341
}

Semantic roles & 50–950 ramp

primary
#BA71FD
secondary
#E4F7D3
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA71FD

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

Preview Lab → · Contrast checker → · Palette generator →

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