#BA2BB2#BA2BB2

#BA2BB2 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.226 H 330.6°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#BA2BB2
RGBrgb(186, 43, 178)
HSLhsl(303, 62%, 45%)
HSVhsv(303, 77%, 73%)
CMYKcmyk(0%, 76.9%, 4.3%, 27.1%)
CIE-LABlab(46.16, 69.27, -40.19)
CIE-LCHlch(46.16, 80.09, 329.88°)
OKLaboklab(56.58% 0.197 -0.1109)
OKLCHoklch(56.58% 0.226 330.6)
XYZxyz(29.1494, 15.3836, 43.5449)
Luminance0.1538 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BB2 #2BBA33
analogous
#7B2BBA #BA2BB2 #BA2B6A
triadic
#BA2BB2 #B2BA2B #2BB2BA
tetradic
#BA2BB2 #BA7B2B #2BBA33 #2B6ABA
square
#BA2BB2 #BA7B2B #2BBA33 #2B6ABA
split-complementary
#BA2BB2 #6ABA2B #2BBA7B
monochromatic
#571453 #882082 #BA2BB2 #D64CCE #E17EDC

Accessibility & contrast

On white

5.15
#BA2BB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA2BB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BB2
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BB2#FFFFFF#000000##FFFFFF
##BA2BB21.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #ba2bb2;
/* rgb */ color: rgb(186, 43, 178);
/* oklch */ color: oklch(56.6% 0.226 330.6);
Tailwind
colors: {
  custom: {
    50: '#d375c9',
    500: '#ba2bb2',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bb2;
$custom-light: #d375c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bb2",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 178
  },
  "hsl": {
    "h": 303.357,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56583,
    "c": 0.22606,
    "h": 330.6
  },
  "luminance": 0.15381
}

Semantic roles & 50–950 ramp

primary
#BA2BB2
secondary
#77CA7C
accent
#E64B42
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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