#BA73EF#BA73EF

#BA73EF is a light, vivid violet. Relative luminance 0.289; OKLCH L 68.2% C 0.186 H 308.7°. Best body text is #000000 at 6.79:1 contrast (WCAG AA passes).

Color values

HEX#BA73EF
RGBrgb(186, 115, 239)
HSLhsl(274, 79%, 69%)
HSVhsv(274, 52%, 94%)
CMYKcmyk(22.2%, 51.9%, 0%, 6.3%)
CIE-LABlab(60.72, 50.01, -51.89)
CIE-LCHlch(60.72, 72.06, 313.94°)
OKLaboklab(68.23% 0.1165 -0.1454)
OKLCHoklch(68.23% 0.186 308.7)
XYZxyz(41.9574, 28.9332, 85.0190)
Luminance0.2893 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73EF #A8EF73
analogous
#7C73EF #BA73EF #EF73E6
triadic
#BA73EF #EFBA73 #73EFBA
tetradic
#BA73EF #EF7C73 #A8EF73 #73E6EF
square
#BA73EF #EF7C73 #A8EF73 #73E6EF
split-complementary
#BA73EF #E6EF73 #73EF7C
monochromatic
#8118D0 #9F3CE9 #BA73EF #D5AAF5 #F0E1FC

Accessibility & contrast

On white

3.09
#BA73EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.79
#BA73EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73EF
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73EF#FFFFFF#000000##000000
##BA73EF1.003.096.796.79
#FFFFFF3.091.0021.0021.00
#0000006.7921.001.001.00
##0000006.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8FF3
Deuteranopia (green-blind)
#6593EC
Tritanopia (blue-blind)
#B389A6
Achromatopsia (no color)
#929292

Design tokens & code

CSS
--color: #ba73ef;
/* rgb */ color: rgb(186, 115, 239);
/* oklch */ color: oklch(68.2% 0.186 308.7);
Tailwind
colors: {
  custom: {
    50: '#d19df5',
    500: '#ba73ef',
    950: '#000000',
  },
}
SCSS
$custom: #ba73ef;
$custom-light: #d19df5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73ef",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 239
  },
  "hsl": {
    "h": 274.355,
    "s": 79.487,
    "l": 69.412
  },
  "oklch": {
    "l": 0.68231,
    "c": 0.18637,
    "h": 308.7
  },
  "luminance": 0.28933
}

Semantic roles & 50–950 ramp

primary
#BA73EF
secondary
#DCF1CD
accent
#DC0A64
background
#FDF9FF
surface
#FAF2FE
border
#D3CCD6
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73EF

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

Preview Lab → · Contrast checker → · Palette generator →

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