#BA73F7#BA73F7

#BA73F7 is a light, vivid violet. Relative luminance 0.294; OKLCH L 68.7% C 0.195 H 306.8°. Best body text is #000000 at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#BA73F7
RGBrgb(186, 115, 247)
HSLhsl(272, 89%, 71%)
HSVhsv(272, 53%, 97%)
CMYKcmyk(24.7%, 53.4%, 0%, 3.1%)
CIE-LABlab(61.15, 51.80, -55.64)
CIE-LCHlch(61.15, 76.02, 312.95°)
OKLaboklab(68.68% 0.1171 -0.1564)
OKLCHoklch(68.68% 0.195 306.8)
XYZxyz(43.1655, 29.4164, 91.3816)
Luminance0.2942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73F7 #B0F773
analogous
#7873F7 #BA73F7 #F773F2
triadic
#BA73F7 #F7BA73 #73F7BA
tetradic
#BA73F7 #F77873 #B0F773 #73F2F7
square
#BA73F7 #F77873 #B0F773 #73F2F7
split-complementary
#BA73F7 #F2F773 #73F778
monochromatic
#800DE3 #9D39F4 #BA73F7 #D7ADFA #F1E2FD

Accessibility & contrast

On white

3.05
#BA73F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.88
#BA73F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73F7
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73F7#FFFFFF#000000##000000
##BA73F71.003.056.886.88
#FFFFFF3.051.0021.0021.00
#0000006.8821.001.001.00
##0000006.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4891FB
Deuteranopia (green-blind)
#6094F4
Tritanopia (blue-blind)
#B18BAA
Achromatopsia (no color)
#949494

Design tokens & code

CSS
--color: #ba73f7;
/* rgb */ color: rgb(186, 115, 247);
/* oklch */ color: oklch(68.7% 0.195 306.8);
Tailwind
colors: {
  custom: {
    50: '#d29dfa',
    500: '#ba73f7',
    950: '#000000',
  },
}
SCSS
$custom: #ba73f7;
$custom-light: #d29dfa;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73f7",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 247
  },
  "hsl": {
    "h": 272.273,
    "s": 89.189,
    "l": 70.98
  },
  "oklch": {
    "l": 0.68682,
    "c": 0.19536,
    "h": 306.8
  },
  "luminance": 0.29416
}

Semantic roles & 50–950 ramp

primary
#BA73F7
secondary
#E2F4D1
accent
#E6006A
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85

Preview Lab

Preview with #BA73F7

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

Preview Lab → · Contrast checker → · Palette generator →

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