#BA2AB1#BA2AB1

#BA2AB1 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.5% C 0.226 H 330.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB1
RGBrgb(186, 42, 177)
HSLhsl(304, 63%, 45%)
HSVhsv(304, 77%, 73%)
CMYKcmyk(0%, 77.4%, 4.8%, 27.1%)
CIE-LABlab(46.00, 69.40, -39.84)
CIE-LCHlch(46.00, 80.02, 330.14°)
OKLaboklab(56.46% 0.1978 -0.1099)
OKLCHoklch(56.46% 0.226 330.9)
XYZxyz(29.0134, 15.2717, 43.0061)
Luminance0.1527 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB1 #2ABA33
analogous
#7B2ABA #BA2AB1 #BA2A69
triadic
#BA2AB1 #B1BA2A #2AB1BA
tetradic
#BA2AB1 #BA7B2A #2ABA33 #2A69BA
square
#BA2AB1 #BA7B2A #2ABA33 #2A69BA
split-complementary
#BA2AB1 #69BA2A #2ABA7B
monochromatic
#561352 #881F81 #BA2AB1 #D64BCE #E27DDB

Accessibility & contrast

On white

5.18
#BA2AB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#BA2AB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB1
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB1#FFFFFF#000000##FFFFFF
##BA2AB11.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1860B5
Deuteranopia (green-blind)
#5974AE
Tritanopia (blue-blind)
#C13E6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2ab1;
/* rgb */ color: rgb(186, 42, 177);
/* oklch */ color: oklch(56.5% 0.226 330.9);
Tailwind
colors: {
  custom: {
    50: '#d375c9',
    500: '#ba2ab1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab1;
$custom-light: #d375c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab1",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 303.75,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56457,
    "c": 0.22626,
    "h": 330.9
  },
  "luminance": 0.15269
}

Semantic roles & 50–950 ramp

primary
#BA2AB1
secondary
#76CA7B
accent
#E64C42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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