#BA2AAB#BA2AAB

#BA2AAB is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.1% C 0.222 H 332.9°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#BA2AAB
RGBrgb(186, 42, 171)
HSLhsl(306, 63%, 45%)
HSVhsv(306, 77%, 73%)
CMYKcmyk(0%, 77.4%, 8.1%, 27.1%)
CIE-LABlab(45.69, 68.49, -36.80)
CIE-LCHlch(45.69, 77.75, 331.75°)
OKLaboklab(56.13% 0.1976 -0.1011)
OKLCHoklch(56.13% 0.222 332.9)
XYZxyz(28.4285, 15.0378, 39.9255)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2AAB #2ABA39
analogous
#812ABA #BA2AAB #BA2A63
triadic
#BA2AAB #ABBA2A #2AABBA
tetradic
#BA2AAB #BA812A #2ABA39 #2A63BA
square
#BA2AAB #BA812A #2ABA39 #2A63BA
split-complementary
#BA2AAB #63BA2A #2ABA81
monochromatic
#56134F #881F7D #BA2AAB #D64BC8 #E27DD7

Accessibility & contrast

On white

5.24
#BA2AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#BA2AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2AAB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2AAB#FFFFFF#000000##FFFFFF
##BA2AAB1.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225FAE
Deuteranopia (green-blind)
#5C73A8
Tritanopia (blue-blind)
#C23B69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2aab;
/* rgb */ color: rgb(186, 42, 171);
/* oklch */ color: oklch(56.1% 0.222 332.9);
Tailwind
colors: {
  custom: {
    50: '#d374c4',
    500: '#ba2aab',
    950: '#000000',
  },
}
SCSS
$custom: #ba2aab;
$custom-light: #d374c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2aab",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 306.25,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56127,
    "c": 0.22201,
    "h": 332.9
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#BA2AAB
secondary
#76CA7F
accent
#E65342
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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