#BA73DC#BA73DC

#BA73DC is a light, vivid purple. Relative luminance 0.279; OKLCH L 67.2% C 0.165 H 313.9°. Best body text is #000000 at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#BA73DC
RGBrgb(186, 115, 220)
HSLhsl(281, 60%, 66%)
HSVhsv(281, 48%, 86%)
CMYKcmyk(15.5%, 47.7%, 0%, 13.7%)
CIE-LABlab(59.77, 45.89, -42.80)
CIE-LCHlch(59.77, 62.75, 317.00°)
OKLaboklab(67.22% 0.1146 -0.119)
OKLCHoklch(67.22% 0.165 313.9)
XYZxyz(39.2966, 27.8688, 71.0054)
Luminance0.2787 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73DC #95DC73
analogous
#8573DC #BA73DC #DC73CA
triadic
#BA73DC #DCBA73 #73DCBA
tetradic
#BA73DC #DC8573 #95DC73 #73CADC
square
#BA73DC #DC8573 #95DC73 #73CADC
split-complementary
#BA73DC #CADC73 #73DC85
monochromatic
#812BAA #A242D0 #BA73DC #D2A4E8 #EAD5F4

Accessibility & contrast

On white

3.19
#BA73DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA73DC#FFFFFF#000000##000000
##BA73DC1.003.196.576.57
#FFFFFF3.191.0021.0021.00
#0000006.5721.001.001.00
##0000006.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8CE0
Deuteranopia (green-blind)
#7192D9
Tritanopia (blue-blind)
#B7839D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba73dc;
/* rgb */ color: rgb(186, 115, 220);
/* oklch */ color: oklch(67.2% 0.165 313.9);
Tailwind
colors: {
  custom: {
    50: '#d19de7',
    500: '#ba73dc',
    950: '#000000',
  },
}
SCSS
$custom: #ba73dc;
$custom-light: #d19de7;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73dc",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 220
  },
  "hsl": {
    "h": 280.571,
    "s": 60,
    "l": 65.686
  },
  "oklch": {
    "l": 0.67215,
    "c": 0.16518,
    "h": 313.9
  },
  "luminance": 0.27868
}

Semantic roles & 50–950 ramp

primary
#BA73DC
secondary
#CFE7C4
accent
#C81E55
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA73DC

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

Preview Lab → · Contrast checker → · Palette generator →

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