#BA81CA#BA81CA

#BA81CA is a light, vivid purple. Relative luminance 0.304; OKLCH L 68.6% C 0.121 H 318.7°. Best body text is #000000 at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#BA81CA
RGBrgb(186, 129, 202)
HSLhsl(287, 41%, 65%)
HSVhsv(287, 36%, 79%)
CMYKcmyk(7.9%, 36.1%, 0%, 20.8%)
CIE-LABlab(62.00, 34.56, -29.20)
CIE-LCHlch(62.00, 45.25, 319.81°)
OKLaboklab(68.63% 0.091 -0.08)
OKLCHoklch(68.63% 0.121 318.7)
XYZxyz(38.7592, 30.4049, 59.6927)
Luminance0.3040 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA81CA #91CA81
analogous
#9581CA #BA81CA #CA81B6
triadic
#BA81CA #CABA81 #81CABA
tetradic
#BA81CA #CA9581 #91CA81 #81B6CA
square
#BA81CA #CA9581 #91CA81 #81B6CA
split-complementary
#BA81CA #B6CA81 #81CA95
monochromatic
#803E93 #A256B8 #BA81CA #D2ACDC #E9D7EE

Accessibility & contrast

On white

2.97
#BA81CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.08
#BA81CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #BA81CA
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA81CA#FFFFFF#000000##000000
##BA81CA1.002.977.087.08
#FFFFFF2.971.0021.0021.00
#0000007.0821.001.001.00
##0000007.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7792CD
Deuteranopia (green-blind)
#8598C8
Tritanopia (blue-blind)
#BB8A9C
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #ba81ca;
/* rgb */ color: rgb(186, 129, 202);
/* oklch */ color: oklch(68.6% 0.121 318.7);
Tailwind
colors: {
  custom: {
    50: '#d0a6da',
    500: '#ba81ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba81ca;
$custom-light: #d0a6da;
$custom-dark: #000000;
JSON
{
  "hex": "#ba81ca",
  "rgb": {
    "r": 186,
    "g": 129,
    "b": 202
  },
  "hsl": {
    "h": 286.849,
    "s": 40.782,
    "l": 64.902
  },
  "oklch": {
    "l": 0.68628,
    "c": 0.12121,
    "h": 318.7
  },
  "luminance": 0.30404
}

Semantic roles & 50–950 ramp

primary
#BA81CA
secondary
#CCE0C7
accent
#B4324E
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F15
muted
#827F83

Preview Lab

Preview with #BA81CA

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

Preview Lab → · Contrast checker → · Palette generator →

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