#BA2BB8#BA2BB8

#BA2BB8 is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.9% C 0.230 H 328.7°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#BA2BB8
RGBrgb(186, 43, 184)
HSLhsl(301, 62%, 45%)
HSVhsv(301, 77%, 73%)
CMYKcmyk(0%, 76.9%, 1.1%, 27.1%)
CIE-LABlab(46.48, 70.21, -43.19)
CIE-LCHlch(46.48, 82.43, 328.40°)
OKLaboklab(56.92% 0.1969 -0.1196)
OKLCHoklch(56.92% 0.23 328.7)
XYZxyz(29.7650, 15.6298, 46.7873)
Luminance0.1563 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BB8 #2BBA2D
analogous
#742BBA #BA2BB8 #BA2B71
triadic
#BA2BB8 #B8BA2B #2BB8BA
tetradic
#BA2BB8 #BA742B #2BBA2D #2B71BA
square
#BA2BB8 #BA742B #2BBA2D #2B71BA
split-complementary
#BA2BB8 #71BA2B #2BBA74
monochromatic
#571456 #882087 #BA2BB8 #D64CD4 #E17EE0

Accessibility & contrast

On white

5.09
#BA2BB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#BA2BB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BB8
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BB8#FFFFFF#000000##FFFFFF
##BA2BB81.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0762BC
Deuteranopia (green-blind)
#5575B5
Tritanopia (blue-blind)
#C04271
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2bb8;
/* rgb */ color: rgb(186, 43, 184);
/* oklch */ color: oklch(56.9% 0.230 328.7);
Tailwind
colors: {
  custom: {
    50: '#d375ce',
    500: '#ba2bb8',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bb8;
$custom-light: #d375ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bb8",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 300.839,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56924,
    "c": 0.23042,
    "h": 328.7
  },
  "luminance": 0.15628
}

Semantic roles & 50–950 ramp

primary
#BA2BB8
secondary
#77CA78
accent
#E64542
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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