#BA71DE#BA71DE

#BA71DE is a light, vivid purple. Relative luminance 0.275; OKLCH L 67.0% C 0.171 H 313.5°. Best body text is #000000 at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#BA71DE
RGBrgb(186, 113, 222)
HSLhsl(280, 62%, 66%)
HSVhsv(280, 49%, 87%)
CMYKcmyk(16.2%, 49.1%, 0%, 12.9%)
CIE-LABlab(59.46, 47.37, -44.41)
CIE-LCHlch(59.46, 64.94, 316.85°)
OKLaboklab(67.01% 0.1176 -0.1237)
OKLCHoklch(67.01% 0.171 313.5)
XYZxyz(39.3375, 27.5242, 72.3336)
Luminance0.2752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA71DE #95DE71
analogous
#8371DE #BA71DE #DE71CC
triadic
#BA71DE #DEBA71 #71DEBA
tetradic
#BA71DE #DE8371 #95DE71 #71CCDE
square
#BA71DE #DE8371 #95DE71 #71CCDE
split-complementary
#BA71DE #CCDE71 #71DE83
monochromatic
#8128AD #A23FD2 #BA71DE #D2A3EA #EAD4F5

Accessibility & contrast

On white

3.23
#BA71DE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.50
#BA71DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA71DE
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA71DE#FFFFFF#000000##000000
##BA71DE1.003.236.506.50
#FFFFFF3.231.0021.0021.00
#0000006.5021.001.001.00
##0000006.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#598BE2
Deuteranopia (green-blind)
#6E91DB
Tritanopia (blue-blind)
#B7829D
Achromatopsia (no color)
#8F8F8F

Design tokens & code

CSS
--color: #ba71de;
/* rgb */ color: rgb(186, 113, 222);
/* oklch */ color: oklch(67.0% 0.171 313.5);
Tailwind
colors: {
  custom: {
    50: '#d19ce9',
    500: '#ba71de',
    950: '#000000',
  },
}
SCSS
$custom: #ba71de;
$custom-light: #d19ce9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba71de",
  "rgb": {
    "r": 186,
    "g": 113,
    "b": 222
  },
  "hsl": {
    "h": 280.183,
    "s": 62.286,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67013,
    "c": 0.17063,
    "h": 313.5
  },
  "luminance": 0.27523
}

Semantic roles & 50–950 ramp

primary
#BA71DE
secondary
#CFE8C3
accent
#CA1B55
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA71DE

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

Preview Lab → · Contrast checker → · Palette generator →

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