#BA73B2#BA73B2

#BA73B2 is a light, vivid purple. Relative luminance 0.259; OKLCH L 65.3% C 0.122 H 331.0°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#BA73B2
RGBrgb(186, 115, 178)
HSLhsl(307, 34%, 59%)
HSVhsv(307, 38%, 73%)
CMYKcmyk(0%, 38.2%, 4.3%, 27.1%)
CIE-LABlab(57.96, 37.59, -21.79)
CIE-LCHlch(57.96, 43.45, 329.90°)
OKLaboklab(65.26% 0.1063 -0.059)
OKLCHoklch(65.26% 0.122 331)
XYZxyz(34.4159, 25.9166, 45.3004)
Luminance0.2591 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA73B2 #73BA7B
analogous
#9F73BA #BA73B2 #BA738F
triadic
#BA73B2 #B2BA73 #73B2BA
tetradic
#BA73B2 #BA9F73 #73BA7B #738FBA
square
#BA73B2 #BA9F73 #73BA7B #738FBA
split-complementary
#BA73B2 #8FBA73 #73BA9F
monochromatic
#783B71 #A14F97 #BA73B2 #CE9CC9 #E2C5DF

Accessibility & contrast

On white

3.40
#BA73B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#BA73B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA73B2
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA73B2#FFFFFF#000000##000000
##BA73B21.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7185B4
Deuteranopia (green-blind)
#838FB0
Tritanopia (blue-blind)
#BF788A
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #ba73b2;
/* rgb */ color: rgb(186, 115, 178);
/* oklch */ color: oklch(65.3% 0.122 331.0);
Tailwind
colors: {
  custom: {
    50: '#d09dc9',
    500: '#ba73b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba73b2;
$custom-light: #d09dc9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba73b2",
  "rgb": {
    "r": 186,
    "g": 115,
    "b": 178
  },
  "hsl": {
    "h": 306.761,
    "s": 33.971,
    "l": 59.02
  },
  "oklch": {
    "l": 0.65264,
    "c": 0.12154,
    "h": 331
  },
  "luminance": 0.25915
}

Semantic roles & 50–950 ramp

primary
#BA73B2
secondary
#B6D2BA
accent
#CA6A5E
background
#FCF9FC
surface
#F9F2F8
border
#D2CCD1
text
#140E13
muted
#827E82

Preview Lab

Preview with #BA73B2

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

Preview Lab → · Contrast checker → · Palette generator →

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