#BA73EB#BA73EB

#BA73EB is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.0% C 0.182 H 309.7°. Best body text is #000000 at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#BA73EB
RGBrgb(186, 115, 235)
HSLhsl(276, 75%, 69%)
HSVhsv(276, 51%, 92%)
CMYKcmyk(20.9%, 51.1%, 0%, 7.8%)
CIE-LABlab(60.52, 49.13, -50.00)
CIE-LCHlch(60.52, 70.09, 314.50°)
OKLaboklab(68.01% 0.1162 -0.1399)
OKLCHoklch(68.01% 0.182 309.7)
XYZxyz(41.3730, 28.6994, 81.9412)
Luminance0.2870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73EB #A4EB73
analogous
#7E73EB #BA73EB #EB73E0
triadic
#BA73EB #EBBA73 #73EBBA
tetradic
#BA73EB #EB7E73 #A4EB73 #73E0EB
square
#BA73EB #EB7E73 #A4EB73 #73E0EB
split-complementary
#BA73EB #E0EB73 #73EB7E
monochromatic
#811CC7 #A03DE3 #BA73EB #D4A9F3 #EFDEFA

Accessibility & contrast

On white

3.12
#BA73EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.74
#BA73EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73EB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73EB#FFFFFF#000000##000000
##BA73EB1.003.126.746.74
#FFFFFF3.121.0021.0021.00
#0000006.7421.001.001.00
##0000006.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FEF
Deuteranopia (green-blind)
#6893E8
Tritanopia (blue-blind)
#B487A4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba73eb;
/* rgb */ color: rgb(186, 115, 235);
/* oklch */ color: oklch(68.0% 0.182 309.7);
Tailwind
colors: {
  custom: {
    50: '#d19df2',
    500: '#ba73eb',
    950: '#000000',
  },
}
SCSS
$custom: #ba73eb;
$custom-light: #d19df2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73eb",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 235
  },
  "hsl": {
    "h": 275.5,
    "s": 75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.6801,
    "c": 0.18189,
    "h": 309.7
  },
  "luminance": 0.28699
}

Semantic roles & 50–950 ramp

primary
#BA73EB
secondary
#DAEFCB
accent
#D70E60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73EB

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

Preview Lab → · Contrast checker → · Palette generator →

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