#BA2BB6#BA2BB6

#BA2BB6 is a mid, highly saturated purple. Relative luminance 0.155; OKLCH L 56.8% C 0.229 H 329.3°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#BA2BB6
RGBrgb(186, 43, 182)
HSLhsl(302, 62%, 45%)
HSVhsv(302, 77%, 73%)
CMYKcmyk(0%, 76.9%, 2.2%, 27.1%)
CIE-LABlab(46.37, 69.89, -42.19)
CIE-LCHlch(46.37, 81.64, 328.88°)
OKLaboklab(56.81% 0.1969 -0.1168)
OKLCHoklch(56.81% 0.229 329.3)
XYZxyz(29.5569, 15.5466, 45.6910)
Luminance0.1554 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BB6 #2BBA2F
analogous
#762BBA #BA2BB6 #BA2B6F
triadic
#BA2BB6 #B6BA2B #2BB6BA
tetradic
#BA2BB6 #BA762B #2BBA2F #2B6FBA
square
#BA2BB6 #BA762B #2BBA2F #2B6FBA
split-complementary
#BA2BB6 #6FBA2B #2BBA76
monochromatic
#571455 #882085 #BA2BB6 #D64CD2 #E17EDE

Accessibility & contrast

On white

5.11
#BA2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#BA2BB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BB6
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BB6#FFFFFF#000000##FFFFFF
##BA2BB61.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E62BA
Deuteranopia (green-blind)
#5774B3
Tritanopia (blue-blind)
#C14170
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2bb6;
/* rgb */ color: rgb(186, 43, 182);
/* oklch */ color: oklch(56.8% 0.229 329.3);
Tailwind
colors: {
  custom: {
    50: '#d375cc',
    500: '#ba2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bb6;
$custom-light: #d375cc;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bb6",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 301.678,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56809,
    "c": 0.22896,
    "h": 329.3
  },
  "luminance": 0.15544
}

Semantic roles & 50–950 ramp

primary
#BA2BB6
secondary
#77CA79
accent
#E64742
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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