#BA2AB5#BA2AB5

#BA2AB5 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.7% C 0.229 H 329.7°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB5
RGBrgb(186, 42, 181)
HSLhsl(302, 63%, 45%)
HSVhsv(302, 77%, 73%)
CMYKcmyk(0%, 77.4%, 2.7%, 27.1%)
CIE-LABlab(46.22, 70.02, -41.85)
CIE-LCHlch(46.22, 81.57, 329.14°)
OKLaboklab(56.68% 0.1978 -0.1157)
OKLCHoklch(56.68% 0.229 329.7)
XYZxyz(29.4180, 15.4335, 45.1367)
Luminance0.1543 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB5 #2ABA2F
analogous
#772ABA #BA2AB5 #BA2A6D
triadic
#BA2AB5 #B5BA2A #2AB5BA
tetradic
#BA2AB5 #BA772A #2ABA2F #2A6DBA
square
#BA2AB5 #BA772A #2ABA2F #2A6DBA
split-complementary
#BA2AB5 #6DBA2A #2ABA77
monochromatic
#561354 #881F84 #BA2AB5 #D64BD1 #E27DDE

Accessibility & contrast

On white

5.14
#BA2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.09
#BA2AB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB5
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB5#FFFFFF#000000##FFFFFF
##BA2AB51.005.144.095.14
#FFFFFF5.141.0021.001.00
#0000004.0921.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E61B9
Deuteranopia (green-blind)
#5774B2
Tritanopia (blue-blind)
#C1406F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2ab5;
/* rgb */ color: rgb(186, 42, 181);
/* oklch */ color: oklch(56.7% 0.229 329.7);
Tailwind
colors: {
  custom: {
    50: '#d375cc',
    500: '#ba2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab5;
$custom-light: #d375cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab5",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 302.083,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56684,
    "c": 0.22913,
    "h": 329.7
  },
  "luminance": 0.15431
}

Semantic roles & 50–950 ramp

primary
#BA2AB5
secondary
#76CA79
accent
#E64742
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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