#BA2CB1#BA2CB1

#BA2CB1 is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.6% C 0.224 H 330.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#BA2CB1
RGBrgb(186, 44, 177)
HSLhsl(304, 62%, 45%)
HSVhsv(304, 76%, 73%)
CMYKcmyk(0%, 76.3%, 4.8%, 27.1%)
CIE-LABlab(46.20, 68.84, -39.53)
CIE-LCHlch(46.20, 79.38, 330.13°)
OKLaboklab(56.6% 0.1961 -0.109)
OKLCHoklch(56.6% 0.224 330.9)
XYZxyz(29.0862, 15.4172, 43.0303)
Luminance0.1542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2CB1 #2CBA35
analogous
#7C2CBA #BA2CB1 #BA2C6A
triadic
#BA2CB1 #B1BA2C #2CB1BA
tetradic
#BA2CB1 #BA7C2C #2CBA35 #2C6ABA
square
#BA2CB1 #BA7C2C #2CBA35 #2C6ABA
split-complementary
#BA2CB1 #6ABA2C #2CBA7C
monochromatic
#571553 #892082 #BA2CB1 #D54ECD #E180DB

Accessibility & contrast

On white

5.14
#BA2CB1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#BA2CB1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2CB1
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2CB1#FFFFFF#000000##FFFFFF
##BA2CB11.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B61B5
Deuteranopia (green-blind)
#5A74AE
Tritanopia (blue-blind)
#C13F6D
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #ba2cb1;
/* rgb */ color: rgb(186, 44, 177);
/* oklch */ color: oklch(56.6% 0.224 330.9);
Tailwind
colors: {
  custom: {
    50: '#d375c9',
    500: '#ba2cb1',
    950: '#000000',
  },
}
SCSS
$custom: #ba2cb1;
$custom-light: #d375c9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2cb1",
  "rgb": {
    "r": 186,
    "g": 44,
    "b": 177
  },
  "hsl": {
    "h": 303.803,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56598,
    "c": 0.2244,
    "h": 330.9
  },
  "luminance": 0.15415
}

Semantic roles & 50–950 ramp

primary
#BA2CB1
secondary
#78CA7D
accent
#E54D43
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150913
muted
#837B82

Preview Lab

Preview with #BA2CB1

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

Preview Lab → · Contrast checker → · Palette generator →

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