#BA32A6#BA32A6

#BA32A6 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.5% C 0.210 H 334.7°. Best body text is #FFFFFF at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#BA32A6
RGBrgb(186, 50, 166)
HSLhsl(309, 58%, 46%)
HSVhsv(309, 73%, 73%)
CMYKcmyk(0%, 73.1%, 10.8%, 27.1%)
CIE-LABlab(46.28, 65.33, -32.90)
CIE-LCHlch(46.28, 73.14, 333.27°)
OKLaboklab(56.47% 0.1902 -0.0899)
OKLCHoklch(56.47% 0.21 334.7)
XYZxyz(28.2735, 15.4760, 37.5671)
Luminance0.1547 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32A6 #32BA46
analogous
#8A32BA #BA32A6 #BA3262
triadic
#BA32A6 #A6BA32 #32A6BA
tetradic
#BA32A6 #BA8A32 #32BA46 #3262BA
square
#BA32A6 #BA8A32 #32BA46 #3262BA
split-complementary
#BA32A6 #62BA32 #32BA8A
monochromatic
#5A1850 #8A257B #BA32A6 #D257C0 #DF88D2

Accessibility & contrast

On white

5.13
#BA32A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA32A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32A6
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32A6#FFFFFF#000000##FFFFFF
##BA32A61.005.134.095.13
#FFFFFF5.131.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3161A9
Deuteranopia (green-blind)
#6275A3
Tritanopia (blue-blind)
#C33E69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba32a6;
/* rgb */ color: rgb(186, 50, 166);
/* oklch */ color: oklch(56.5% 0.210 334.7);
Tailwind
colors: {
  custom: {
    50: '#d377c1',
    500: '#ba32a6',
    950: '#000000',
  },
}
SCSS
$custom: #ba32a6;
$custom-light: #d377c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32a6",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 166
  },
  "hsl": {
    "h": 308.824,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56471,
    "c": 0.21043,
    "h": 334.7
  },
  "luminance": 0.15473
}

Semantic roles & 50–950 ramp

primary
#BA32A6
secondary
#7FC98A
accent
#E15E47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA32A6

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

Preview Lab → · Contrast checker → · Palette generator →

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