#BA2BAA#BA2BAA

#BA2BAA is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.220 H 333.2°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#BA2BAA
RGBrgb(186, 43, 170)
HSLhsl(307, 62%, 45%)
HSVhsv(307, 77%, 73%)
CMYKcmyk(0%, 76.9%, 8.6%, 27.1%)
CIE-LABlab(45.73, 68.06, -36.13)
CIE-LCHlch(45.73, 77.06, 332.04°)
OKLaboklab(56.14% 0.1968 -0.0992)
OKLCHoklch(56.14% 0.22 333.2)
XYZxyz(28.3695, 15.0716, 39.4374)
Luminance0.1507 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BAA #2BBA3B
analogous
#822BBA #BA2BAA #BA2B63
triadic
#BA2BAA #AABA2B #2BAABA
tetradic
#BA2BAA #BA822B #2BBA3B #2B63BA
square
#BA2BAA #BA822B #2BBA3B #2B63BA
split-complementary
#BA2BAA #63BA2B #2BBA82
monochromatic
#57144F #88207D #BA2BAA #D64CC6 #E17ED6

Accessibility & contrast

On white

5.23
#BA2BAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA2BAA
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BAA#FFFFFF#000000##FFFFFF
##BA2BAA1.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245FAD
Deuteranopia (green-blind)
#5D73A7
Tritanopia (blue-blind)
#C33B69
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2baa;
/* rgb */ color: rgb(186, 43, 170);
/* oklch */ color: oklch(56.1% 0.220 333.2);
Tailwind
colors: {
  custom: {
    50: '#d375c4',
    500: '#ba2baa',
    950: '#000000',
  },
}
SCSS
$custom: #ba2baa;
$custom-light: #d375c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2baa",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 170
  },
  "hsl": {
    "h": 306.713,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56143,
    "c": 0.22037,
    "h": 333.2
  },
  "luminance": 0.15069
}

Semantic roles & 50–950 ramp

primary
#BA2BAA
secondary
#77CA80
accent
#E65542
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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