#BA73E8#BA73E8

#BA73E8 is a light, vivid violet. Relative luminance 0.285; OKLCH L 67.8% C 0.179 H 310.5°. Best body text is #000000 at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#BA73E8
RGBrgb(186, 115, 232)
HSLhsl(276, 72%, 68%)
HSVhsv(276, 50%, 91%)
CMYKcmyk(19.8%, 50.4%, 0%, 9%)
CIE-LABlab(60.36, 48.47, -48.57)
CIE-LCHlch(60.36, 68.62, 314.94°)
OKLaboklab(67.85% 0.1159 -0.1358)
OKLCHoklch(67.85% 0.179 310.5)
XYZxyz(40.9432, 28.5275, 79.6778)
Luminance0.2853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73E8 #A1E873
analogous
#7F73E8 #BA73E8 #E873DC
triadic
#BA73E8 #E8BA73 #73E8BA
tetradic
#BA73E8 #E87F73 #A1E873 #73DCE8
square
#BA73E8 #E87F73 #A1E873 #73DCE8
split-complementary
#BA73E8 #DCE873 #73E87F
monochromatic
#8220C1 #A03EDF #BA73E8 #D4A8F1 #EEDCF9

Accessibility & contrast

On white

3.13
#BA73E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.71
#BA73E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73E8
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73E8#FFFFFF#000000##000000
##BA73E81.003.136.716.71
#FFFFFF3.131.0021.0021.00
#0000006.7121.001.001.00
##0000006.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#558EEC
Deuteranopia (green-blind)
#6A93E5
Tritanopia (blue-blind)
#B486A3
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba73e8;
/* rgb */ color: rgb(186, 115, 232);
/* oklch */ color: oklch(67.8% 0.179 310.5);
Tailwind
colors: {
  custom: {
    50: '#d19df0',
    500: '#ba73e8',
    950: '#000000',
  },
}
SCSS
$custom: #ba73e8;
$custom-light: #d19df0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73e8",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 232
  },
  "hsl": {
    "h": 276.41,
    "s": 71.779,
    "l": 68.039
  },
  "oklch": {
    "l": 0.67847,
    "c": 0.17853,
    "h": 310.5
  },
  "luminance": 0.28527
}

Semantic roles & 50–950 ramp

primary
#BA73E8
secondary
#D8EDCA
accent
#D4125E
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84

Preview Lab

Preview with #BA73E8

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

Preview Lab → · Contrast checker → · Palette generator →

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