#BA73F9#BA73F9

#BA73F9 is a light, vivid violet. Relative luminance 0.295; OKLCH L 68.8% C 0.198 H 306.4°. Best body text is #000000 at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#BA73F9
RGBrgb(186, 115, 249)
HSLhsl(272, 92%, 71%)
HSVhsv(272, 54%, 98%)
CMYKcmyk(25.3%, 53.8%, 0%, 2.4%)
CIE-LABlab(61.26, 52.25, -56.57)
CIE-LCHlch(61.26, 77.01, 312.73°)
OKLaboklab(68.8% 0.1172 -0.1591)
OKLCHoklch(68.8% 0.198 306.4)
XYZxyz(43.4758, 29.5405, 93.0157)
Luminance0.2954 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73F9 #B2F973
analogous
#7773F9 #BA73F9 #F973F5
triadic
#BA73F9 #F9BA73 #73F9BA
tetradic
#BA73F9 #F97773 #B2F973 #73F5F9
square
#BA73F9 #F97773 #B2F973 #73F5F9
split-complementary
#BA73F9 #F5F973 #73F977
monochromatic
#7F0AE8 #9D38F6 #BA73F9 #D7AEFC #F1E2FE

Accessibility & contrast

On white

3.04
#BA73F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.91
#BA73F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73F9
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73F9#FFFFFF#000000##000000
##BA73F91.003.046.916.91
#FFFFFF3.041.0021.0021.00
#0000006.9121.001.001.00
##0000006.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4691FD
Deuteranopia (green-blind)
#5E94F6
Tritanopia (blue-blind)
#B08CAB
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba73f9;
/* rgb */ color: rgb(186, 115, 249);
/* oklch */ color: oklch(68.8% 0.198 306.4);
Tailwind
colors: {
  custom: {
    50: '#d29efc',
    500: '#ba73f9',
    950: '#000000',
  },
}
SCSS
$custom: #ba73f9;
$custom-light: #d29efc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73f9",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 249
  },
  "hsl": {
    "h": 271.791,
    "s": 91.781,
    "l": 71.373
  },
  "oklch": {
    "l": 0.68797,
    "c": 0.19761,
    "h": 306.4
  },
  "luminance": 0.2954
}

Semantic roles & 50–950 ramp

primary
#BA73F9
secondary
#E3F5D2
accent
#E6006C
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73F9

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

Preview Lab → · Contrast checker → · Palette generator →

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