#BA2AB8#BA2AB8

#BA2AB8 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.9% C 0.231 H 328.7°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB8
RGBrgb(186, 42, 184)
HSLhsl(301, 63%, 45%)
HSVhsv(301, 77%, 73%)
CMYKcmyk(0%, 77.4%, 1.1%, 27.1%)
CIE-LABlab(46.39, 70.49, -43.34)
CIE-LCHlch(46.39, 82.75, 328.41°)
OKLaboklab(56.86% 0.1977 -0.1201)
OKLCHoklch(56.86% 0.231 328.7)
XYZxyz(29.7291, 15.5580, 46.7753)
Luminance0.1556 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB8 #2ABA2C
analogous
#742ABA #BA2AB8 #BA2A70
triadic
#BA2AB8 #B8BA2A #2AB8BA
tetradic
#BA2AB8 #BA742A #2ABA2C #2A70BA
square
#BA2AB8 #BA742A #2ABA2C #2A70BA
split-complementary
#BA2AB8 #70BA2A #2ABA74
monochromatic
#561355 #881F87 #BA2AB8 #D64BD4 #E27DE0

Accessibility & contrast

On white

5.11
#BA2AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA2AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB8
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB8#FFFFFF#000000##FFFFFF
##BA2AB81.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0362BC
Deuteranopia (green-blind)
#5574B5
Tritanopia (blue-blind)
#C04271
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2ab8;
/* rgb */ color: rgb(186, 42, 184);
/* oklch */ color: oklch(56.9% 0.231 328.7);
Tailwind
colors: {
  custom: {
    50: '#d375ce',
    500: '#ba2ab8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab8;
$custom-light: #d375ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab8",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 184
  },
  "hsl": {
    "h": 300.833,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56856,
    "c": 0.23132,
    "h": 328.7
  },
  "luminance": 0.15556
}

Semantic roles & 50–950 ramp

primary
#BA2AB8
secondary
#76CA77
accent
#E64442
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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