#BA32A8#BA32A8

#BA32A8 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.6% C 0.212 H 334.0°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA32A8
RGBrgb(186, 50, 168)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 73%, 73%)
CMYKcmyk(0%, 73.1%, 9.7%, 27.1%)
CIE-LABlab(46.38, 65.63, -33.93)
CIE-LCHlch(46.38, 73.88, 332.66°)
OKLaboklab(56.58% 0.1904 -0.0929)
OKLCHoklch(56.58% 0.212 334)
XYZxyz(28.4584, 15.5499, 38.5408)
Luminance0.1555 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32A8 #32BA44
analogous
#8832BA #BA32A8 #BA3264
triadic
#BA32A8 #A8BA32 #32A8BA
tetradic
#BA32A8 #BA8832 #32BA44 #3264BA
square
#BA32A8 #BA8832 #32BA44 #3264BA
split-complementary
#BA32A8 #64BA32 #32BA88
monochromatic
#5A1851 #8A257C #BA32A8 #D257C2 #DF88D3

Accessibility & contrast

On white

5.11
#BA32A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA32A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32A8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32A8#FFFFFF#000000##FFFFFF
##BA32A81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F61AB
Deuteranopia (green-blind)
#6175A5
Tritanopia (blue-blind)
#C33F6A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba32a8;
/* rgb */ color: rgb(186, 50, 168);
/* oklch */ color: oklch(56.6% 0.212 334.0);
Tailwind
colors: {
  custom: {
    50: '#d377c2',
    500: '#ba32a8',
    950: '#000000',
  },
}
SCSS
$custom: #ba32a8;
$custom-light: #d377c2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32a8",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 168
  },
  "hsl": {
    "h": 307.941,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56575,
    "c": 0.21185,
    "h": 334
  },
  "luminance": 0.15547
}

Semantic roles & 50–950 ramp

primary
#BA32A8
secondary
#7FC989
accent
#E15B47
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA32A8

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

Preview Lab → · Contrast checker → · Palette generator →

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