#BA32B7#BA32B7

#BA32B7 is a mid, highly saturated purple. Relative luminance 0.161; OKLCH L 57.4% C 0.223 H 329.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#BA32B7
RGBrgb(186, 50, 183)
HSLhsl(301, 58%, 46%)
HSVhsv(301, 73%, 73%)
CMYKcmyk(0%, 73.1%, 1.6%, 27.1%)
CIE-LABlab(47.16, 67.96, -41.53)
CIE-LCHlch(47.16, 79.64, 328.57°)
OKLaboklab(57.39% 0.191 -0.1149)
OKLCHoklch(57.39% 0.223 329)
XYZxyz(29.9373, 16.1414, 46.3294)
Luminance0.1614 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32B7 #32BA35
analogous
#7932BA #BA32B7 #BA3273
triadic
#BA32B7 #B7BA32 #32B7BA
tetradic
#BA32B7 #BA7932 #32BA35 #3273BA
square
#BA32B7 #BA7932 #32BA35 #3273BA
split-complementary
#BA32B7 #73BA32 #32BA79
monochromatic
#5A1858 #8A2588 #BA32B7 #D257CF #DF88DD

Accessibility & contrast

On white

4.97
#BA32B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#BA32B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32B7
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32B7#FFFFFF#000000##FFFFFF
##BA32B71.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C64BB
Deuteranopia (green-blind)
#5976B4
Tritanopia (blue-blind)
#C04672
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba32b7;
/* rgb */ color: rgb(186, 50, 183);
/* oklch */ color: oklch(57.4% 0.223 329.0);
Tailwind
colors: {
  custom: {
    50: '#d378cd',
    500: '#ba32b7',
    950: '#000000',
  },
}
SCSS
$custom: #ba32b7;
$custom-light: #d378cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32b7",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 183
  },
  "hsl": {
    "h": 301.324,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57388,
    "c": 0.22286,
    "h": 329
  },
  "luminance": 0.16139
}

Semantic roles & 50–950 ramp

primary
#BA32B7
secondary
#7FC981
accent
#E14A47
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA32B7

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

Preview Lab → · Contrast checker → · Palette generator →

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