#BA2CB9#BA2CB9

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

Color values

HEX#BA2CB9
RGBrgb(186, 44, 185)
HSLhsl(300, 62%, 45%)
HSVhsv(300, 76%, 73%)
CMYKcmyk(0%, 76.3%, 0.5%, 27.1%)
CIE-LABlab(46.64, 70.09, -43.53)
CIE-LCHlch(46.64, 82.50, 328.16°)
OKLaboklab(57.05% 0.1961 -0.1206)
OKLCHoklch(57.05% 0.23 328.4)
XYZxyz(29.9070, 15.7455, 47.3535)
Luminance0.1574 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB9 #2CBA2D
analogous
#742CBA #BA2CB9 #BA2C72
triadic
#BA2CB9 #B9BA2C #2CB9BA
tetradic
#BA2CB9 #BA742C #2CBA2D #2C72BA
square
#BA2CB9 #BA742C #2CBA2D #2C72BA
split-complementary
#BA2CB9 #72BA2C #2CBA74
monochromatic
#571557 #892088 #BA2CB9 #D54ED4 #E180E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2CB9#FFFFFF#000000##FFFFFF
##BA2CB91.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)
#0663BD
Deuteranopia (green-blind)
#5575B6
Tritanopia (blue-blind)
#C04372
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #ba2cb9;
/* rgb */ color: rgb(186, 44, 185);
/* oklch */ color: oklch(57.1% 0.230 328.4);
Tailwind
colors: {
  custom: {
    50: '#d376ce',
    500: '#ba2cb9',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb9;
$custom-light: #d376ce;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb9",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 300.423,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.57052,
    "c": 0.23023,
    "h": 328.4
  },
  "luminance": 0.15743
}

Semantic roles & 50–950 ramp

primary
#BA2CB9
secondary
#78CA79
accent
#E54443
background
#FDF7FC
surface
#FBEEF9
border
#D4C9D2
text
#150A14
muted
#837C82

Preview Lab

Preview with #BA2CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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