#BA32B2#BA32B2

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

Color values

HEX#BA32B2
RGBrgb(186, 50, 178)
HSLhsl(304, 58%, 46%)
HSVhsv(304, 73%, 73%)
CMYKcmyk(0%, 73.1%, 4.3%, 27.1%)
CIE-LABlab(46.89, 67.16, -39.02)
CIE-LCHlch(46.89, 77.68, 329.84°)
OKLaboklab(57.11% 0.1909 -0.1076)
OKLCHoklch(57.11% 0.219 330.6)
XYZxyz(29.4261, 15.9370, 43.6372)
Luminance0.1593 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32B2 #32BA3A
analogous
#7E32BA #BA32B2 #BA326E
triadic
#BA32B2 #B2BA32 #32B2BA
tetradic
#BA32B2 #BA7E32 #32BA3A #326EBA
square
#BA32B2 #BA7E32 #32BA3A #326EBA
split-complementary
#BA32B2 #6EBA32 #32BA7E
monochromatic
#5A1856 #8A2584 #BA32B2 #D257CB #DF88DA

Accessibility & contrast

On white

5.02
#BA32B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#BA32B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32B2
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32B2#FFFFFF#000000##FFFFFF
##BA32B21.005.024.195.02
#FFFFFF5.021.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B5
Deuteranopia (green-blind)
#5C76AF
Tritanopia (blue-blind)
#C1436F
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba32b2;
/* rgb */ color: rgb(186, 50, 178);
/* oklch */ color: oklch(57.1% 0.219 330.6);
Tailwind
colors: {
  custom: {
    50: '#d378c9',
    500: '#ba32b2',
    950: '#000000',
  },
}
SCSS
$custom: #ba32b2;
$custom-light: #d378c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32b2",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 178
  },
  "hsl": {
    "h": 303.529,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5711,
    "c": 0.21912,
    "h": 330.6
  },
  "luminance": 0.15935
}

Semantic roles & 50–950 ramp

primary
#BA32B2
secondary
#7FC983
accent
#E15047
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA32B2

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

Preview Lab → · Contrast checker → · Palette generator →

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