#BA73DF#BA73DF

#BA73DF is a light, vivid violet. Relative luminance 0.280; OKLCH L 67.4% C 0.169 H 313.0°. Best body text is #000000 at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#BA73DF
RGBrgb(186, 115, 223)
HSLhsl(279, 63%, 66%)
HSVhsv(279, 48%, 87%)
CMYKcmyk(16.6%, 48.4%, 0%, 12.5%)
CIE-LABlab(59.92, 46.53, -44.25)
CIE-LCHlch(59.92, 64.21, 316.44°)
OKLaboklab(67.37% 0.1149 -0.1232)
OKLCHoklch(67.37% 0.169 313)
XYZxyz(39.6975, 28.0292, 73.1167)
Luminance0.2803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73DF #98DF73
analogous
#8473DF #BA73DF #DF73CE
triadic
#BA73DF #DFBA73 #73DFBA
tetradic
#BA73DF #DF8473 #98DF73 #73CEDF
square
#BA73DF #DF8473 #98DF73 #73CEDF
split-complementary
#BA73DF #CEDF73 #73DF84
monochromatic
#8128AF #A141D4 #BA73DF #D3A5EA #EBD7F6

Accessibility & contrast

On white

3.18
#BA73DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.61
#BA73DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73DF
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73DF#FFFFFF#000000##000000
##BA73DF1.003.186.616.61
#FFFFFF3.181.0021.0021.00
#0000006.6121.001.001.00
##0000006.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8CE3
Deuteranopia (green-blind)
#6F92DC
Tritanopia (blue-blind)
#B7849F
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba73df;
/* rgb */ color: rgb(186, 115, 223);
/* oklch */ color: oklch(67.4% 0.169 313.0);
Tailwind
colors: {
  custom: {
    50: '#d19de9',
    500: '#ba73df',
    950: '#000000',
  },
}
SCSS
$custom: #ba73df;
$custom-light: #d19de9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73df",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 223
  },
  "hsl": {
    "h": 279.444,
    "s": 62.791,
    "l": 66.275
  },
  "oklch": {
    "l": 0.6737,
    "c": 0.16851,
    "h": 313
  },
  "luminance": 0.28028
}

Semantic roles & 50–950 ramp

primary
#BA73DF
secondary
#D1E9C5
accent
#CB1B57
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA73DF

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

Preview Lab → · Contrast checker → · Palette generator →

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