#BA2BAB#BA2BAB

#BA2BAB is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.221 H 332.9°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#BA2BAB
RGBrgb(186, 43, 171)
HSLhsl(306, 62%, 45%)
HSVhsv(306, 77%, 73%)
CMYKcmyk(0%, 76.9%, 8.1%, 27.1%)
CIE-LABlab(45.78, 68.21, -36.64)
CIE-LCHlch(45.78, 77.43, 331.76°)
OKLaboklab(56.2% 0.1968 -0.1007)
OKLCHoklch(56.2% 0.221 332.9)
XYZxyz(28.4644, 15.1096, 39.9375)
Luminance0.1511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BAB #2BBA3A
analogous
#822BBA #BA2BAB #BA2B63
triadic
#BA2BAB #ABBA2B #2BABBA
tetradic
#BA2BAB #BA822B #2BBA3A #2B63BA
square
#BA2BAB #BA822B #2BBA3A #2B63BA
split-complementary
#BA2BAB #63BA2B #2BBA82
monochromatic
#571450 #88207D #BA2BAB #D64CC7 #E17ED7

Accessibility & contrast

On white

5.22
#BA2BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#BA2BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BAB
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BAB#FFFFFF#000000##FFFFFF
##BA2BAB1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235FAE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#C23B6A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2bab;
/* rgb */ color: rgb(186, 43, 171);
/* oklch */ color: oklch(56.2% 0.221 332.9);
Tailwind
colors: {
  custom: {
    50: '#d375c4',
    500: '#ba2bab',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bab;
$custom-light: #d375c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bab",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 306.294,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56197,
    "c": 0.22108,
    "h": 332.9
  },
  "luminance": 0.15107
}

Semantic roles & 50–950 ramp

primary
#BA2BAB
secondary
#77CA80
accent
#E65342
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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