#BA71E7#BA71E7

#BA71E7 is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.5% C 0.181 H 311.0°. Best body text is #000000 at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#BA71E7
RGBrgb(186, 113, 231)
HSLhsl(277, 71%, 67%)
HSVhsv(277, 51%, 91%)
CMYKcmyk(19.5%, 51.1%, 0%, 9.4%)
CIE-LABlab(59.91, 49.30, -48.73)
CIE-LCHlch(59.91, 69.32, 315.33°)
OKLaboklab(67.49% 0.1185 -0.1362)
OKLCHoklch(67.49% 0.181 311)
XYZxyz(40.5760, 28.0197, 78.8566)
Luminance0.2802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71E7 #9EE771
analogous
#7F71E7 #BA71E7 #E771D9
triadic
#BA71E7 #E7BA71 #71E7BA
tetradic
#BA71E7 #E77F71 #9EE771 #71D9E7
square
#BA71E7 #E77F71 #9EE771 #71D9E7
split-complementary
#BA71E7 #D9E771 #71E77F
monochromatic
#8120BE #A13DDE #BA71E7 #D3A5F0 #EDDAF9

Accessibility & contrast

On white

3.18
#BA71E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.60
#BA71E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71E7
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71E7#FFFFFF#000000##000000
##BA71E71.003.186.606.60
#FFFFFF3.181.0021.0021.00
#0000006.6021.001.001.00
##0000006.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#528DEB
Deuteranopia (green-blind)
#6992E4
Tritanopia (blue-blind)
#B585A2
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba71e7;
/* rgb */ color: rgb(186, 113, 231);
/* oklch */ color: oklch(67.5% 0.181 311.0);
Tailwind
colors: {
  custom: {
    50: '#d19cef',
    500: '#ba71e7',
    950: '#000000',
  },
}
SCSS
$custom: #ba71e7;
$custom-light: #d19cef;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71e7",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 277.119,
    "s": 71.084,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67493,
    "c": 0.18056,
    "h": 311
  },
  "luminance": 0.28019
}

Semantic roles & 50–950 ramp

primary
#BA71E7
secondary
#D6ECC7
accent
#D3125C
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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