#BA73FB#BA73FB

#BA73FB is a light, vivid violet. Relative luminance 0.297; OKLCH L 68.9% C 0.200 H 305.9°. Best body text is #000000 at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#BA73FB
RGBrgb(186, 115, 251)
HSLhsl(271, 94%, 72%)
HSVhsv(271, 54%, 98%)
CMYKcmyk(25.9%, 54.2%, 0%, 1.6%)
CIE-LABlab(61.37, 52.70, -57.50)
CIE-LCHlch(61.37, 78.00, 312.51°)
OKLaboklab(68.91% 0.1173 -0.1618)
OKLCHoklch(68.91% 0.2 305.9)
XYZxyz(43.7894, 29.6660, 94.6673)
Luminance0.2967 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73FB #B4FB73
analogous
#7673FB #BA73FB #FB73F8
triadic
#BA73FB #FBBA73 #73FBBA
tetradic
#BA73FB #FB7673 #B4FB73 #73F8FB
square
#BA73FB #FB7673 #B4FB73 #73F8FB
split-complementary
#BA73FB #F8FB73 #73FB76
monochromatic
#7F07ED #9D38F9 #BA73FB #D7AFFD #F0E1FE

Accessibility & contrast

On white

3.03
#BA73FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.93
#BA73FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73FB
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73FB#FFFFFF#000000##000000
##BA73FB1.003.036.936.93
#FFFFFF3.031.0021.0021.00
#0000006.9321.001.001.00
##0000006.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4492FF
Deuteranopia (green-blind)
#5C95F8
Tritanopia (blue-blind)
#AF8CAC
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba73fb;
/* rgb */ color: rgb(186, 115, 251);
/* oklch */ color: oklch(68.9% 0.200 305.9);
Tailwind
colors: {
  custom: {
    50: '#d29efd',
    500: '#ba73fb',
    950: '#000000',
  },
}
SCSS
$custom: #ba73fb;
$custom-light: #d29efd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73fb",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 251
  },
  "hsl": {
    "h": 271.324,
    "s": 94.444,
    "l": 71.765
  },
  "oklch": {
    "l": 0.68912,
    "c": 0.19986,
    "h": 305.9
  },
  "luminance": 0.29666
}

Semantic roles & 50–950 ramp

primary
#BA73FB
secondary
#E4F6D4
accent
#E6006E
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E18
muted
#837E86

Preview Lab

Preview with #BA73FB

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

Preview Lab → · Contrast checker → · Palette generator →

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