#BA32BA#BA32BA

#BA32BA is a mid, highly saturated purple. Relative luminance 0.163; OKLCH L 57.6% C 0.225 H 328.0°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#BA32BA
RGBrgb(186, 50, 186)
HSLhsl(300, 58%, 46%)
HSVhsv(300, 73%, 73%)
CMYKcmyk(0%, 73.1%, 0%, 27.1%)
CIE-LABlab(47.32, 68.44, -43.03)
CIE-LCHlch(47.32, 80.84, 327.84°)
OKLaboklab(57.56% 0.191 -0.1192)
OKLCHoklch(57.56% 0.225 328)
XYZxyz(30.2529, 16.2677, 47.9914)
Luminance0.1626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA32BA #32BA32
analogous
#7632BA #BA32BA #BA3276
triadic
#BA32BA #BABA32 #32BABA
tetradic
#BA32BA #BA7632 #32BA32 #3276BA
square
#BA32BA #BA7632 #32BA32 #3276BA
split-complementary
#BA32BA #76BA32 #32BA76
monochromatic
#5A185A #8A258A #BA32BA #D257D2 #DF88DF

Accessibility & contrast

On white

4.94
#BA32BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#BA32BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA32BA
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA32BA#FFFFFF#000000##FFFFFF
##BA32BA1.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1565BE
Deuteranopia (green-blind)
#5776B7
Tritanopia (blue-blind)
#C04774
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #ba32ba;
/* rgb */ color: rgb(186, 50, 186);
/* oklch */ color: oklch(57.6% 0.225 328.0);
Tailwind
colors: {
  custom: {
    50: '#d378cf',
    500: '#ba32ba',
    950: '#000000',
  },
}
SCSS
$custom: #ba32ba;
$custom-light: #d378cf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba32ba",
  "rgb": {
    "r": 186,
    "g": 50,
    "b": 186
  },
  "hsl": {
    "h": 300,
    "s": 57.627,
    "l": 46.275
  },
  "oklch": {
    "l": 0.57559,
    "c": 0.22513,
    "h": 328
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#BA32BA
secondary
#7FC97F
accent
#E14747
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA32BA

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

Preview Lab → · Contrast checker → · Palette generator →

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