#BA73EA#BA73EA

#BA73EA is a light, vivid violet. Relative luminance 0.286; OKLCH L 68.0% C 0.181 H 310.0°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#BA73EA
RGBrgb(186, 115, 234)
HSLhsl(276, 74%, 68%)
HSVhsv(276, 51%, 92%)
CMYKcmyk(20.5%, 50.9%, 0%, 8.2%)
CIE-LABlab(60.46, 48.91, -49.52)
CIE-LCHlch(60.46, 69.60, 314.64°)
OKLaboklab(67.96% 0.1161 -0.1385)
OKLCHoklch(67.96% 0.181 310)
XYZxyz(41.2289, 28.6418, 81.1824)
Luminance0.2864 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73EA #A3EA73
analogous
#7E73EA #BA73EA #EA73DF
triadic
#BA73EA #EABA73 #73EABA
tetradic
#BA73EA #EA7E73 #A3EA73 #73DFEA
square
#BA73EA #EA7E73 #A3EA73 #73DFEA
split-complementary
#BA73EA #DFEA73 #73EA7E
monochromatic
#811EC5 #A03EE2 #BA73EA #D4A8F2 #EEDDFA

Accessibility & contrast

On white

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

On black

6.73
#BA73EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73EA
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73EA#FFFFFF#000000##000000
##BA73EA1.003.126.736.73
#FFFFFF3.121.0021.0021.00
#0000006.7321.001.001.00
##0000006.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#538FEE
Deuteranopia (green-blind)
#6993E7
Tritanopia (blue-blind)
#B487A4
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba73ea;
/* rgb */ color: rgb(186, 115, 234);
/* oklch */ color: oklch(68.0% 0.181 310.0);
Tailwind
colors: {
  custom: {
    50: '#d19df1',
    500: '#ba73ea',
    950: '#000000',
  },
}
SCSS
$custom: #ba73ea;
$custom-light: #d19df1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73ea",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 234
  },
  "hsl": {
    "h": 275.798,
    "s": 73.913,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67956,
    "c": 0.18077,
    "h": 310
  },
  "luminance": 0.28641
}

Semantic roles & 50–950 ramp

primary
#BA73EA
secondary
#D9EECA
accent
#D60F60
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73EA

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

Preview Lab → · Contrast checker → · Palette generator →

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