#BA32A7#BA32A7

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

Color values

HEX#BA32A7
RGBrgb(186, 50, 167)
HSLhsl(308, 58%, 46%)
HSVhsv(308, 73%, 73%)
CMYKcmyk(0%, 73.1%, 10.2%, 27.1%)
CIE-LABlab(46.33, 65.48, -33.41)
CIE-LCHlch(46.33, 73.51, 332.96°)
OKLaboklab(56.52% 0.1903 -0.0914)
OKLCHoklch(56.52% 0.211 334.3)
XYZxyz(28.3656, 15.5128, 38.0521)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32A7 #32BA45
analogous
#8932BA #BA32A7 #BA3263
triadic
#BA32A7 #A7BA32 #32A7BA
tetradic
#BA32A7 #BA8932 #32BA45 #3263BA
square
#BA32A7 #BA8932 #32BA45 #3263BA
split-complementary
#BA32A7 #63BA32 #32BA89
monochromatic
#5A1850 #8A257C #BA32A7 #D257C1 #DF88D3

Accessibility & contrast

On white

5.12
#BA32A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#BA32A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32A7
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32A7#FFFFFF#000000##FFFFFF
##BA32A71.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3061AA
Deuteranopia (green-blind)
#6175A4
Tritanopia (blue-blind)
#C33E69
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba32a7;
/* rgb */ color: rgb(186, 50, 167);
/* oklch */ color: oklch(56.5% 0.211 334.3);
Tailwind
colors: {
  custom: {
    50: '#d377c1',
    500: '#ba32a7',
    950: '#000000',
  },
}
SCSS
$custom: #ba32a7;
$custom-light: #d377c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32a7",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 167
  },
  "hsl": {
    "h": 308.382,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.56523,
    "c": 0.21115,
    "h": 334.3
  },
  "luminance": 0.1551
}

Semantic roles & 50–950 ramp

primary
#BA32A7
secondary
#7FC989
accent
#E15C47
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#150A12
muted
#837C81

Preview Lab

Preview with #BA32A7

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

Preview Lab → · Contrast checker → · Palette generator →

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