#BA32B1#BA32B1

#BA32B1 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 57.1% C 0.218 H 330.9°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA32B1
RGBrgb(186, 50, 177)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 73%, 73%)
CMYKcmyk(0%, 73.1%, 4.8%, 27.1%)
CIE-LABlab(46.84, 67.01, -38.52)
CIE-LCHlch(46.84, 77.29, 330.11°)
OKLaboklab(57.06% 0.1909 -0.1061)
OKLCHoklch(57.06% 0.218 330.9)
XYZxyz(29.3261, 15.8970, 43.1103)
Luminance0.1590 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32B1 #32BA3B
analogous
#7F32BA #BA32B1 #BA326D
triadic
#BA32B1 #B1BA32 #32B1BA
tetradic
#BA32B1 #BA7F32 #32BA3B #326DBA
square
#BA32B1 #BA7F32 #32BA3B #326DBA
split-complementary
#BA32B1 #6DBA32 #32BA7F
monochromatic
#5A1855 #8A2583 #BA32B1 #D257CA #DF88D9

Accessibility & contrast

On white

5.03
#BA32B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#BA32B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32B1
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32B1#FFFFFF#000000##FFFFFF
##BA32B11.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2563B4
Deuteranopia (green-blind)
#5C76AE
Tritanopia (blue-blind)
#C1436F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba32b1;
/* rgb */ color: rgb(186, 50, 177);
/* oklch */ color: oklch(57.1% 0.218 330.9);
Tailwind
colors: {
  custom: {
    50: '#d378c9',
    500: '#ba32b1',
    950: '#000000',
  },
}
SCSS
$custom: #ba32b1;
$custom-light: #d378c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32b1",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 177
  },
  "hsl": {
    "h": 303.971,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57055,
    "c": 0.21838,
    "h": 330.9
  },
  "luminance": 0.15895
}

Semantic roles & 50–950 ramp

primary
#BA32B1
secondary
#7FC984
accent
#E15147
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA32B1

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

Preview Lab → · Contrast checker → · Palette generator →

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