#BA3AC7#BA3AC7

#BA3AC7 is a mid, highly saturated purple. Relative luminance 0.176; OKLCH L 59.0% C 0.227 H 323.9°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA3AC7
RGBrgb(186, 58, 199)
HSLhsl(294, 56%, 50%)
HSVhsv(294, 71%, 78%)
CMYKcmyk(6.5%, 70.9%, 0%, 22%)
CIE-LABlab(49.00, 67.94, -47.92)
CIE-LCHlch(49.00, 83.14, 324.80°)
OKLaboklab(58.99% 0.1832 -0.1335)
OKLCHoklch(58.99% 0.227 323.9)
XYZxyz(32.0707, 17.5907, 55.7279)
Luminance0.1759 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA3AC7 #47C73A
analogous
#733AC7 #BA3AC7 #C73A8D
triadic
#BA3AC7 #C7BA3A #3AC7BA
tetradic
#BA3AC7 #C7733A #47C73A #3A8DC7
square
#BA3AC7 #C7733A #47C73A #3A8DC7
split-complementary
#BA3AC7 #8DC73A #3AC773
monochromatic
#621E69 #8E2B98 #BA3AC7 #CB6AD5 #DB99E2

Accessibility & contrast

On white

4.65
#BA3AC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA3AC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA3AC7
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA3AC7#FFFFFF#000000##FFFFFF
##BA3AC71.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#086BCB
Deuteranopia (green-blind)
#537AC4
Tritanopia (blue-blind)
#BD527D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba3ac7;
/* rgb */ color: rgb(186, 58, 199);
/* oklch */ color: oklch(59.0% 0.227 323.9);
Tailwind
colors: {
  custom: {
    50: '#d37cd8',
    500: '#ba3ac7',
    950: '#000000',
  },
}
SCSS
$custom: #ba3ac7;
$custom-light: #d37cd8;
$custom-dark: #000000;
JSON
{
  "hex": "#ba3ac7",
  "rgb": {
    "r": 186,
    "g": 58,
    "b": 199
  },
  "hsl": {
    "h": 294.468,
    "s": 55.731,
    "l": 50.392
  },
  "oklch": {
    "l": 0.5899,
    "c": 0.22672,
    "h": 323.9
  },
  "luminance": 0.17589
}

Semantic roles & 50–950 ramp

primary
#BA3AC7
secondary
#95CE8F
accent
#DF4957
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150A15
muted
#837C83

Preview Lab

Preview with #BA3AC7

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

Preview Lab → · Contrast checker → · Palette generator →

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