#BA2CBB#BA2CBB

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

Color values

HEX#BA2CBB
RGBrgb(186, 44, 187)
HSLhsl(300, 62%, 45%)
HSVhsv(300, 76%, 73%)
CMYKcmyk(0.5%, 76.5%, 0%, 26.7%)
CIE-LABlab(46.75, 70.40, -44.52)
CIE-LCHlch(46.75, 83.30, 327.69°)
OKLaboklab(57.17% 0.196 -0.1235)
OKLCHoklch(57.17% 0.232 327.8)
XYZxyz(30.1196, 15.8305, 48.4733)
Luminance0.1583 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CBB #2DBB2C
analogous
#722CBB #BA2CBB #BB2C75
triadic
#BA2CBB #BBBA2C #2CBBBA
tetradic
#BA2CBB #BB722C #2DBB2C #2C75BB
square
#BA2CBB #BB722C #2DBB2C #2C75BB
split-complementary
#BA2CBB #75BB2C #2CBB72
monochromatic
#571558 #892089 #BA2CBB #D54FD6 #E080E1

Accessibility & contrast

On white

5.04
#BA2CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#BA2CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CBB
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CBB#FFFFFF#000000##FFFFFF
##BA2CBB1.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.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: #ba2cbb;
/* rgb */ color: rgb(186, 44, 187);
/* oklch */ color: oklch(57.2% 0.232 327.8);
Tailwind
colors: {
  custom: {
    50: '#d376d0',
    500: '#ba2cbb',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cbb;
$custom-light: #d376d0;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cbb",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 299.58,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57168,
    "c": 0.23171,
    "h": 327.8
  },
  "luminance": 0.15828
}

Semantic roles & 50–950 ramp

primary
#BA2CBB
secondary
#79CA79
accent
#E54344
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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