#BA2BB7#BA2BB7

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

Color values

HEX#BA2BB7
RGBrgb(186, 43, 183)
HSLhsl(301, 62%, 45%)
HSVhsv(301, 77%, 73%)
CMYKcmyk(0%, 76.9%, 1.6%, 27.1%)
CIE-LABlab(46.43, 70.05, -42.69)
CIE-LCHlch(46.43, 82.04, 328.64°)
OKLaboklab(56.87% 0.1969 -0.1182)
OKLCHoklch(56.87% 0.23 329)
XYZxyz(29.6606, 15.5880, 46.2372)
Luminance0.1559 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BB7 #2BBA2E
analogous
#762BBA #BA2BB7 #BA2B6F
triadic
#BA2BB7 #B7BA2B #2BB7BA
tetradic
#BA2BB7 #BA762B #2BBA2E #2B6FBA
square
#BA2BB7 #BA762B #2BBA2E #2B6FBA
split-complementary
#BA2BB7 #6FBA2B #2BBA76
monochromatic
#571455 #882086 #BA2BB7 #D64CD3 #E17EDF

Accessibility & contrast

On white

5.10
#BA2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#BA2BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BB7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BB7#FFFFFF#000000##FFFFFF
##BA2BB71.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B62BB
Deuteranopia (green-blind)
#5674B4
Tritanopia (blue-blind)
#C04270
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2bb7;
/* rgb */ color: rgb(186, 43, 183);
/* oklch */ color: oklch(56.9% 0.230 329.0);
Tailwind
colors: {
  custom: {
    50: '#d375cd',
    500: '#ba2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bb7;
$custom-light: #d375cd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bb7",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 301.259,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56867,
    "c": 0.22968,
    "h": 329
  },
  "luminance": 0.15586
}

Semantic roles & 50–950 ramp

primary
#BA2BB7
secondary
#77CA79
accent
#E64642
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A13
muted
#837C82

Preview Lab

Preview with #BA2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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