#BA2BAC#BA2BAC

#BA2BAC is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.3% C 0.222 H 332.6°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#BA2BAC
RGBrgb(186, 43, 172)
HSLhsl(306, 62%, 45%)
HSVhsv(306, 77%, 73%)
CMYKcmyk(0%, 76.9%, 7.5%, 27.1%)
CIE-LABlab(45.84, 68.36, -37.15)
CIE-LCHlch(45.84, 77.80, 331.48°)
OKLaboklab(56.25% 0.1969 -0.1022)
OKLCHoklch(56.25% 0.222 332.6)
XYZxyz(28.5601, 15.1478, 40.4414)
Luminance0.1515 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2BAC #2BBA39
analogous
#802BBA #BA2BAC #BA2B65
triadic
#BA2BAC #ACBA2B #2BACBA
tetradic
#BA2BAC #BA802B #2BBA39 #2B65BA
square
#BA2BAC #BA802B #2BBA39 #2B65BA
split-complementary
#BA2BAC #65BA2B #2BBA80
monochromatic
#571450 #88207E #BA2BAC #D64CC8 #E17ED8

Accessibility & contrast

On white

5.21
#BA2BAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#BA2BAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2BAC
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2BAC#FFFFFF#000000##FFFFFF
##BA2BAC1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2260AF
Deuteranopia (green-blind)
#5C74A9
Tritanopia (blue-blind)
#C23C6A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2bac;
/* rgb */ color: rgb(186, 43, 172);
/* oklch */ color: oklch(56.3% 0.222 332.6);
Tailwind
colors: {
  custom: {
    50: '#d375c5',
    500: '#ba2bac',
    950: '#000000',
  },
}
SCSS
$custom: #ba2bac;
$custom-light: #d375c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2bac",
  "rgb": {
    "r": 186,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 305.874,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.56251,
    "c": 0.22178,
    "h": 332.6
  },
  "luminance": 0.15145
}

Semantic roles & 50–950 ramp

primary
#BA2BAC
secondary
#77CA7F
accent
#E65242
background
#FDF7FC
surface
#FBEEF8
border
#D4C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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