#BA2CAB#BA2CAB

#BA2CAB is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.220 H 332.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#BA2CAB
RGBrgb(186, 44, 171)
HSLhsl(306, 62%, 45%)
HSVhsv(306, 76%, 73%)
CMYKcmyk(0%, 76.3%, 8.1%, 27.1%)
CIE-LABlab(45.88, 67.92, -36.48)
CIE-LCHlch(45.88, 77.10, 331.76°)
OKLaboklab(56.27% 0.196 -0.1002)
OKLCHoklch(56.27% 0.22 332.9)
XYZxyz(28.5012, 15.1832, 39.9497)
Luminance0.1518 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CAB #2CBA3B
analogous
#822CBA #BA2CAB #BA2C64
triadic
#BA2CAB #ABBA2C #2CABBA
tetradic
#BA2CAB #BA822C #2CBA3B #2C64BA
square
#BA2CAB #BA822C #2CBA3B #2C64BA
split-complementary
#BA2CAB #64BA2C #2CBA82
monochromatic
#571550 #89207D #BA2CAB #D54EC7 #E180D7

Accessibility & contrast

On white

5.20
#BA2CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#BA2CAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CAB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CAB#FFFFFF#000000##FFFFFF
##BA2CAB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#5D74A8
Tritanopia (blue-blind)
#C23C6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2cab;
/* rgb */ color: rgb(186, 44, 171);
/* oklch */ color: oklch(56.3% 0.220 332.9);
Tailwind
colors: {
  custom: {
    50: '#d375c4',
    500: '#ba2cab',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cab;
$custom-light: #d375c4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cab",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 306.338,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56269,
    "c": 0.22012,
    "h": 332.9
  },
  "luminance": 0.15181
}

Semantic roles & 50–950 ramp

primary
#BA2CAB
secondary
#78CA81
accent
#E55443
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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