#BA73DB#BA73DB

#BA73DB is a light, vivid purple. Relative luminance 0.278; OKLCH L 67.2% C 0.164 H 314.2°. Best body text is #000000 at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#BA73DB
RGBrgb(186, 115, 219)
HSLhsl(281, 59%, 65%)
HSVhsv(281, 47%, 86%)
CMYKcmyk(15.1%, 47.5%, 0%, 14.1%)
CIE-LABlab(59.72, 45.68, -42.31)
CIE-LCHlch(59.72, 62.27, 317.19°)
OKLaboklab(67.16% 0.1144 -0.1176)
OKLCHoklch(67.16% 0.164 314.2)
XYZxyz(39.1645, 27.8160, 70.3100)
Luminance0.2782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73DB #94DB73
analogous
#8673DB #BA73DB #DB73C8
triadic
#BA73DB #DBBA73 #73DBBA
tetradic
#BA73DB #DB8673 #94DB73 #73C8DB
square
#BA73DB #DB8673 #94DB73 #73C8DB
split-complementary
#BA73DB #C8DB73 #73DB86
monochromatic
#812BA8 #A242CE #BA73DB #D2A4E8 #EAD4F4

Accessibility & contrast

On white

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

On black

6.56
#BA73DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73DB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73DB#FFFFFF#000000##000000
##BA73DB1.003.206.566.56
#FFFFFF3.201.0021.0021.00
#0000006.5621.001.001.00
##0000006.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D8CDF
Deuteranopia (green-blind)
#7192D8
Tritanopia (blue-blind)
#B8839D
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba73db;
/* rgb */ color: rgb(186, 115, 219);
/* oklch */ color: oklch(67.2% 0.164 314.2);
Tailwind
colors: {
  custom: {
    50: '#d19de6',
    500: '#ba73db',
    950: '#000000',
  },
}
SCSS
$custom: #ba73db;
$custom-light: #d19de6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73db",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 219
  },
  "hsl": {
    "h": 280.962,
    "s": 59.091,
    "l": 65.49
  },
  "oklch": {
    "l": 0.67163,
    "c": 0.16408,
    "h": 314.2
  },
  "luminance": 0.27815
}

Semantic roles & 50–950 ramp

primary
#BA73DB
secondary
#CFE6C3
accent
#C71F54
background
#FDF9FE
surface
#FAF2FC
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA73DB

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

Preview Lab → · Contrast checker → · Palette generator →

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