#BA2BBB#BA2BBB

#BA2BBB is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.1% C 0.233 H 327.8°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#BA2BBB
RGBrgb(186, 43, 187)
HSLhsl(300, 63%, 45%)
HSVhsv(300, 77%, 73%)
CMYKcmyk(0.5%, 77%, 0%, 26.7%)
CIE-LABlab(46.65, 70.69, -44.68)
CIE-LCHlch(46.65, 83.62, 327.71°)
OKLaboklab(57.1% 0.1968 -0.124)
OKLCHoklch(57.1% 0.233 327.8)
XYZxyz(30.0828, 15.7569, 48.4610)
Luminance0.1575 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BBB #2CBB2B
analogous
#722BBB #BA2BBB #BB2B74
triadic
#BA2BBB #BBBA2B #2BBBBA
tetradic
#BA2BBB #BB722B #2CBB2B #2B74BB
square
#BA2BBB #BB722B #2CBB2B #2B74BB
split-complementary
#BA2BBB #74BB2B #2BBB72
monochromatic
#571457 #892089 #BA2BBB #D54DD6 #E17FE2

Accessibility & contrast

On white

5.06
#BA2BBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#BA2BBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BBB
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BBB#FFFFFF#000000##FFFFFF
##BA2BBB1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063BF
Deuteranopia (green-blind)
#5475B8
Tritanopia (blue-blind)
#C04473
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #ba2bbb;
/* rgb */ color: rgb(186, 43, 187);
/* oklch */ color: oklch(57.1% 0.233 327.8);
Tailwind
colors: {
  custom: {
    50: '#d375d0',
    500: '#ba2bbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bbb;
$custom-light: #d375d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bbb",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 187
  },
  "hsl": {
    "h": 299.583,
    "s": 62.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.57099,
    "c": 0.23262,
    "h": 327.8
  },
  "luminance": 0.15755
}

Semantic roles & 50–950 ramp

primary
#BA2BBB
secondary
#78CA78
accent
#E64243
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2BBB

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

Preview Lab → · Contrast checker → · Palette generator →

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