#BA2AB2#BA2AB2

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

Color values

HEX#BA2AB2
RGBrgb(186, 42, 178)
HSLhsl(303, 63%, 45%)
HSVhsv(303, 77%, 73%)
CMYKcmyk(0%, 77.4%, 4.3%, 27.1%)
CIE-LABlab(46.06, 69.55, -40.34)
CIE-LCHlch(46.06, 80.41, 329.89°)
OKLaboklab(56.51% 0.1978 -0.1114)
OKLCHoklch(56.51% 0.227 330.6)
XYZxyz(29.1135, 15.3117, 43.5330)
Luminance0.1531 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AB2 #2ABA32
analogous
#7A2ABA #BA2AB2 #BA2A6A
triadic
#BA2AB2 #B2BA2A #2AB2BA
tetradic
#BA2AB2 #BA7A2A #2ABA32 #2A6ABA
square
#BA2AB2 #BA7A2A #2ABA32 #2A6ABA
split-complementary
#BA2AB2 #6ABA2A #2ABA7A
monochromatic
#561352 #881F82 #BA2AB2 #D64BCF #E27DDC

Accessibility & contrast

On white

5.17
#BA2AB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#BA2AB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AB2
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AB2#FFFFFF#000000##FFFFFF
##BA2AB21.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1661B6
Deuteranopia (green-blind)
#5974AF
Tritanopia (blue-blind)
#C13E6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2ab2;
/* rgb */ color: rgb(186, 42, 178);
/* oklch */ color: oklch(56.5% 0.227 330.6);
Tailwind
colors: {
  custom: {
    50: '#d375c9',
    500: '#ba2ab2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2ab2;
$custom-light: #d375c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2ab2",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 303.333,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56514,
    "c": 0.22698,
    "h": 330.6
  },
  "luminance": 0.15309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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