#BA2ABB#BA2ABB

#BA2ABB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.0% C 0.234 H 327.8°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#BA2ABB
RGBrgb(186, 42, 187)
HSLhsl(300, 63%, 45%)
HSVhsv(300, 78%, 73%)
CMYKcmyk(0.5%, 77.5%, 0%, 26.7%)
CIE-LABlab(46.56, 70.96, -44.83)
CIE-LCHlch(46.56, 83.93, 327.72°)
OKLaboklab(57.03% 0.1976 -0.1244)
OKLCHoklch(57.03% 0.234 327.8)
XYZxyz(30.0469, 15.6851, 48.4491)
Luminance0.1568 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2ABB #2BBB2A
analogous
#712ABB #BA2ABB #BB2A74
triadic
#BA2ABB #BBBA2A #2ABBBA
tetradic
#BA2ABB #BB712A #2BBB2A #2A74BB
square
#BA2ABB #BB712A #2BBB2A #2A74BB
split-complementary
#BA2ABB #74BB2A #2ABB71
monochromatic
#571457 #881F89 #BA2ABB #D64CD7 #E17DE2

Accessibility & contrast

On white

5.08
#BA2ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#BA2ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2ABB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2ABB#FFFFFF#000000##FFFFFF
##BA2ABB1.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#5375B8
Tritanopia (blue-blind)
#C04372
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2abb;
/* rgb */ color: rgb(186, 42, 187);
/* oklch */ color: oklch(57.0% 0.234 327.8);
Tailwind
colors: {
  custom: {
    50: '#d375d0',
    500: '#ba2abb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2abb;
$custom-light: #d375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2abb",
  "rgb": {
    "r": 186,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 299.586,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.57031,
    "c": 0.23351,
    "h": 327.8
  },
  "luminance": 0.15683
}

Semantic roles & 50–950 ramp

primary
#BA2ABB
secondary
#77CA76
accent
#E64143
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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