#BA2AB3#BA2AB3

#BA2AB3 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.6% C 0.228 H 330.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#BA2AB3
RGBrgb(186, 42, 179)
HSLhsl(303, 63%, 45%)
HSVhsv(303, 77%, 73%)
CMYKcmyk(0%, 77.4%, 3.8%, 27.1%)
CIE-LABlab(46.11, 69.71, -40.84)
CIE-LCHlch(46.11, 80.79, 329.63°)
OKLaboklab(56.57% 0.1978 -0.1128)
OKLCHoklch(56.57% 0.228 330.3)
XYZxyz(29.2142, 15.3520, 44.0637)
Luminance0.1535 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB3 #2ABA31
analogous
#792ABA #BA2AB3 #BA2A6B
triadic
#BA2AB3 #B3BA2A #2AB3BA
tetradic
#BA2AB3 #BA792A #2ABA31 #2A6BBA
square
#BA2AB3 #BA792A #2ABA31 #2A6BBA
split-complementary
#BA2AB3 #6BBA2A #2ABA79
monochromatic
#561353 #881F83 #BA2AB3 #D64BD0 #E27DDD

Accessibility & contrast

On white

5.16
#BA2AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#BA2AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB3
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB3#FFFFFF#000000##FFFFFF
##BA2AB31.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B7
Deuteranopia (green-blind)
#5874B0
Tritanopia (blue-blind)
#C13F6E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2ab3;
/* rgb */ color: rgb(186, 42, 179);
/* oklch */ color: oklch(56.6% 0.228 330.3);
Tailwind
colors: {
  custom: {
    50: '#d375ca',
    500: '#ba2ab3',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab3;
$custom-light: #d375ca;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab3",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 179
  },
  "hsl": {
    "h": 302.917,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.5657,
    "c": 0.2277,
    "h": 330.3
  },
  "luminance": 0.1535
}

Semantic roles & 50–950 ramp

primary
#BA2AB3
secondary
#76CA7A
accent
#E64A42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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