#BA71E4#BA71E4

#BA71E4 is a light, vivid violet. Relative luminance 0.279; OKLCH L 67.3% C 0.177 H 311.8°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#BA71E4
RGBrgb(186, 113, 228)
HSLhsl(278, 68%, 67%)
HSVhsv(278, 50%, 89%)
CMYKcmyk(18.4%, 50.4%, 0%, 10.6%)
CIE-LABlab(59.75, 48.65, -47.30)
CIE-LCHlch(59.75, 67.86, 315.81°)
OKLaboklab(67.33% 0.1182 -0.1321)
OKLCHoklch(67.33% 0.177 311.8)
XYZxyz(40.1559, 27.8516, 76.6443)
Luminance0.2785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71E4 #9BE471
analogous
#8171E4 #BA71E4 #E471D5
triadic
#BA71E4 #E4BA71 #71E4BA
tetradic
#BA71E4 #E48171 #9BE471 #71D5E4
square
#BA71E4 #E48171 #9BE471 #71D5E4
split-complementary
#BA71E4 #D5E471 #71E481
monochromatic
#8123B8 #A13EDA #BA71E4 #D3A4EE #ECD8F8

Accessibility & contrast

On white

3.20
#BA71E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.57
#BA71E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71E4
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71E4#FFFFFF#000000##000000
##BA71E41.003.206.576.57
#FFFFFF3.201.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#548CE8
Deuteranopia (green-blind)
#6B92E1
Tritanopia (blue-blind)
#B684A0
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba71e4;
/* rgb */ color: rgb(186, 113, 228);
/* oklch */ color: oklch(67.3% 0.177 311.8);
Tailwind
colors: {
  custom: {
    50: '#d19ced',
    500: '#ba71e4',
    950: '#000000',
  },
}
SCSS
$custom: #ba71e4;
$custom-light: #d19ced;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71e4",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 278.087,
    "s": 68.047,
    "l": 66.863
  },
  "oklch": {
    "l": 0.67331,
    "c": 0.17725,
    "h": 311.8
  },
  "luminance": 0.27851
}

Semantic roles & 50–950 ramp

primary
#BA71E4
secondary
#D3EBC6
accent
#D0165A
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71E4

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

Preview Lab → · Contrast checker → · Palette generator →

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