#BA73EC#BA73EC

#BA73EC is a light, vivid violet. Relative luminance 0.288; OKLCH L 68.1% C 0.183 H 309.5°. Best body text is #000000 at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#BA73EC
RGBrgb(186, 115, 236)
HSLhsl(275, 76%, 69%)
HSVhsv(275, 51%, 93%)
CMYKcmyk(21.2%, 51.3%, 0%, 7.5%)
CIE-LABlab(60.57, 49.35, -50.47)
CIE-LCHlch(60.57, 70.58, 314.35°)
OKLaboklab(68.07% 0.1163 -0.1413)
OKLCHoklch(68.07% 0.183 309.5)
XYZxyz(41.5179, 28.7574, 82.7042)
Luminance0.2876 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73EC #A5EC73
analogous
#7E73EC #BA73EC #EC73E1
triadic
#BA73EC #ECBA73 #73ECBA
tetradic
#BA73EC #EC7E73 #A5EC73 #73E1EC
square
#BA73EC #EC7E73 #A5EC73 #73E1EC
split-complementary
#BA73EC #E1EC73 #73EC7E
monochromatic
#811BC9 #9F3DE5 #BA73EC #D5A9F3 #EFDFFB

Accessibility & contrast

On white

3.11
#BA73EC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.75
#BA73EC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73EC
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73EC#FFFFFF#000000##000000
##BA73EC1.003.116.756.75
#FFFFFF3.111.0021.0021.00
#0000006.7521.001.001.00
##0000006.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#528FF0
Deuteranopia (green-blind)
#6793E9
Tritanopia (blue-blind)
#B388A5
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba73ec;
/* rgb */ color: rgb(186, 115, 236);
/* oklch */ color: oklch(68.1% 0.183 309.5);
Tailwind
colors: {
  custom: {
    50: '#d19df3',
    500: '#ba73ec',
    950: '#000000',
  },
}
SCSS
$custom: #ba73ec;
$custom-light: #d19df3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73ec",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 236
  },
  "hsl": {
    "h": 275.207,
    "s": 76.101,
    "l": 68.824
  },
  "oklch": {
    "l": 0.68065,
    "c": 0.18301,
    "h": 309.5
  },
  "luminance": 0.28757
}

Semantic roles & 50–950 ramp

primary
#BA73EC
secondary
#DAEFCC
accent
#D80D61
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73EC

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

Preview Lab → · Contrast checker → · Palette generator →

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