#BA73CA#BA73CA

#BA73CA is a light, vivid purple. Relative luminance 0.270; OKLCH L 66.3% C 0.146 H 320.1°. Best body text is #000000 at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#BA73CA
RGBrgb(186, 115, 202)
HSLhsl(289, 45%, 62%)
HSVhsv(289, 43%, 79%)
CMYKcmyk(7.9%, 43.1%, 0%, 20.8%)
CIE-LABlab(58.94, 42.18, -33.95)
CIE-LCHlch(58.94, 54.15, 321.17°)
OKLaboklab(66.33% 0.1117 -0.0935)
OKLCHoklch(66.33% 0.146 320.1)
XYZxyz(37.0398, 26.9661, 59.1195)
Luminance0.2697 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73CA #83CA73
analogous
#8F73CA #BA73CA #CA73AE
triadic
#BA73CA #CABA73 #73CABA
tetradic
#BA73CA #CA8F73 #83CA73 #73AECA
square
#BA73CA #CA8F73 #83CA73 #73AECA
split-complementary
#BA73CA #AECA73 #73CA8F
monochromatic
#7D358D #A447B9 #BA73CA #D09FDB #E6CCEC

Accessibility & contrast

On white

3.28
#BA73CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.39
#BA73CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73CA
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73CA#FFFFFF#000000##000000
##BA73CA1.003.286.396.39
#FFFFFF3.281.0021.0021.00
#0000006.3921.001.001.00
##0000006.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6689CD
Deuteranopia (green-blind)
#7A90C7
Tritanopia (blue-blind)
#BB7E95
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #ba73ca;
/* rgb */ color: rgb(186, 115, 202);
/* oklch */ color: oklch(66.3% 0.146 320.1);
Tailwind
colors: {
  custom: {
    50: '#d09dda',
    500: '#ba73ca',
    950: '#000000',
  },
}
SCSS
$custom: #ba73ca;
$custom-light: #d09dda;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73ca",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 202
  },
  "hsl": {
    "h": 288.966,
    "s": 45.078,
    "l": 62.157
  },
  "oklch": {
    "l": 0.66327,
    "c": 0.14564,
    "h": 320.1
  },
  "luminance": 0.26965
}

Semantic roles & 50–950 ramp

primary
#BA73CA
secondary
#C2DCBC
accent
#B82D47
background
#FCF9FD
surface
#F9F2FB
border
#D2CCD4
text
#140E15
muted
#827E83

Preview Lab

Preview with #BA73CA

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

Preview Lab → · Contrast checker → · Palette generator →

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